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
Hello Stephan and Jeremy
Thank you for your answers.
I promise you that I defined a complete widget code with two different
handlers.
The evidence that my code is working is that I moved the code into the
navigator widget. Obviously with changes and not the functions that are already
OK,
I found the solution!! Muahahahaha! I got my inspiration from the add tag
component of the editTemplate. I used a normal reveal with a drop down div
inside it.
I think I will stick myself with the capture message thing. Here is the
code that is not working as a widget but working inside
On Sunday, April 6, 2014 1:06:33 AM UTC-7, Jeremy Ruston wrote:
var MyWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
this.addEventListeners([
{type: tw-custom-event, handler: handleEvent},
{type: tw-custom-custom2, handler: handleEvent},
]);
};
Hello everybody.
This is now finished and I achieved my goal.
I know about the extra comma. In fact it was not there at the beginning. I
added it because the navigator widget has that extra comma. I knew that it
makes no difference but I was desperate at that moment. ;)
Jeremy, please review
Hi Danielo
Jeremy, please review the navigator widget code, It has an extra comma. :P
regards
Doh! Thanks, much appreciated. Fixed for 5.0.9:
https://github.com/Jermolene/TiddlyWiki5/commit/b51d851f939b5259020cf04848a6a726df258b9d
Best wishes
Jeremy
El domingo, 6 de abril de 2014
Hello
I want to create a widget that captures certain message events.
I used part of the code of the NavigatorWidget with no success.
Can this be accomplished? How?
Thanks in advance.
Here is what I am trying
var MyWidget = function(parseTreeNode,options) {