Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#1098 closed enhancement (invalid)

[patch][need cla] doubleclick on tree nodes

Reported by: m.zdila@… Owned by: ilia
Priority: high Milestone:
Component: Widgets Version: 0.3
Keywords: Cc:
Blocked By: Blocking:

Description

Please add support for handling doubleclicks on tree nodes.

  1. add to Tree.js:
    eventNamesDefault: {
      ...
      // node icon doubleclicked
      iconDblClick: "iconDblClick",
      // node title doubleclicked
      titleDblClick: "titleDblClick",
    }
    
  1. add to TreeNode.js:
    // update templateString: dojoAttachEvent="onClick: onTitleClick; onDblClick: onTitleDblClick"
    
    // add after: dojo.event.connect(this.childIcon, 'onclick', this, 'onIconClick');
    dojo.event.connect(this.childIcon, 'ondblclick', this, 'onIconDblClick');
    
    // add handlers
    onIconDblClick: function(e){
      dojo.event.topic.publish(this.tree.eventNames.iconDblClick, { source: this, event: e });
    },
    
    onTitleDblClick: function(e){
      dojo.event.topic.publish(this.tree.eventNames.titleDblClick, { source: this, event: e });
    },
    
    

Change History (5)

comment:1 Changed 13 years ago by dylan

Owner: changed from anonymous to ilia

comment:2 Changed 13 years ago by dylan

Summary: doubleclick on tree nodes[patch] doubleclick on tree nodes

comment:3 Changed 13 years ago by dylan

Summary: [patch] doubleclick on tree nodes[patch][need cla] doubleclick on tree nodes

Any chance we can get a CLA for this one? http://dojotoolkit.org/foundation/

comment:4 Changed 13 years ago by ilia

Resolution: invalid
Status: newclosed

comment:5 Changed 12 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.