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 smile
How can I do that using ???
That's what I've done = this works well smile

    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)

Re: Context menu with Tree

contextmenu integration example will be soon, mb today or tommorow.

Re: Context menu with Tree

I've integrated dd-menu ))) But it will ber very interesting to try integrated context menu smile