Have you got time to look at the trigger demo ?
next or next next) week.
You are not logged in. Please login or register.
Mifjs forum — Mif.Tree, Mif.Menu » Feature requests » Trigger support... » Post new reply
All fields labelled (Required) must be completed before the form is submitted.
Have you got time to look at the trigger demo ?
next or next next) week.
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.
in your inbox ![]()
where is demo?
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
Mifjs forum — Mif.Tree, Mif.Menu » Feature requests » Trigger support... » Post new reply
Powered by PunBB