Topic: Context menu with Tree
How can i bind your winderful context menu to each node of the tree???
I've added new wrapper to tree 'contextmenu'. This works OK, but.... I need to bind user defined menu ![]()
How can I do that using ???
That's what I've done = this works well ![]()
initEvents: function(){
this.wrapper.addEvents({
mousemove: this.mouse.bindWithEvent(this),
mouseover: this.mouse.bindWithEvent(this),
mouseout: this.mouse.bindWithEvent(this),
mouseleave: this.mouseLeave.bind(this),
mousedown: $lambda(false),
click: this.toggleClick.bindWithEvent(this),
dblclick: this.toggleDblclick.bindWithEvent(this),
contextmenu: this.toggleMenu.bindWithEvent(this),
keydown: this.keyDown.bindWithEvent(this),
keyup: this.keyUp.bindWithEvent(this)
});
},
toggleMenu: function(event){
var target=this.mouse.target;
if((target=='name'||target=='icon')) alert ('!!!!');return;
}
Is it possible to bind menu do more than one divs on page???
Last edited by aliaksej (2008-09-21 17:31:55)