Topic: Trigger support...

Hello,

I've implemented triggers per node. You can assign a specific handler for each node / event.

My only problem is that each event fired to the tree should also be fire to the proper node.
For example   "drop", "select",  "click"  ...

Moro ! I will be happy to help in include this feature in the trunk but we need to discuss it ...

Cheers

Re: Trigger support...

where is demo?

Re: Trigger support...

in your inbox wink

Re: Trigger support...

Have you got time to look at the trigger demo ?
In reality I've just add this in initialize method of Mif.Tree.Node object

...
                if (options.triggers) {
                        for (var i=options.triggers.length; --i>=0; ) {
                                var trigger = options.triggers[i];
                                this.addEvent(trigger.event, eval(trigger.method).bind(this));
                        }
                }
...

As I told you the problem is that most of the event never comes on node object.
using events bubbling/capturing model we can do the job.

Re: Trigger support...

Have you got time to look at the trigger demo ?

next or next next) week.