Hi Danielo

Here is what I am trying
>
> var MyWidget = function(parseTreeNode,options) {
> this.initialise(parseTreeNode,options);
> this.addEventListeners([
> {type: "tw-custom-event", handler: "handleEvent"},
> {type: "tw-custom-custom2", handler: "handleEvent"},
> ]);
> };
>
> What am I missing?
>
> You'd also need to define methods for handleEvent, render, execute and
refresh. And you'd probably want to use different handler functions for the
two events.

> I'm using a tiddler that I transclude in view template. This tiddler has
a button which launch an event. If I use this in the normal way, it works
as expected setting the tiddlerTitle to the title of the tiddler where the
button is transcluded. But if I enclose the button inside a popup reveal
widget it launch the event with the tiddlerTitle as the source tiddler. How
can I hidde the button but make it think it is in that tiddler?

It's too hard for me to deduce precisely what the wikitext you are using
looks like.

If you're able to share more of your code it would be easier for me to help
you.

Best wishes

Jeremy



> --
> 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/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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/d/optout.

Reply via email to