Another question : Now my widget is OK, I can draw an animated pendulum inside. I would like to add the animation function as a parameter. So I add a parameter to my widget : <$mycanvas animation="pendulum">
I get the parameter in the execute() function. I create a tiddler with my animation function "pendulum.js" with type "application/javascript". Then I want to execute my function with something like : - window[this.displayFunc](this.canvasDomNode); - (eval(this.displayFunc))(this.canvasDomNode); Neither worked. I tried to add a type:command / type:utils / type:global to my pendulum.js tiddler. But it didn't worked. I have no clue how to define and call this function from the widget. -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/groups/opt_out.
