[patch][need cla] doubleclick on tree nodes
Please add support for handling doubleclicks on tree nodes.
- add to Tree.js:
eventNamesDefault: {
...
// node icon doubleclicked
iconDblClick: "iconDblClick",
// node title doubleclicked
titleDblClick: "titleDblClick",
}
- 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)
Owner: |
changed from anonymous to ilia
|
Summary: |
doubleclick on tree nodes →
[patch] doubleclick on tree nodes
|
Summary: |
[patch] doubleclick on tree nodes →
[patch][need cla] doubleclick on tree nodes
|
Resolution: |
→ invalid
|
Status: |
new →
closed
|
Any chance we can get a CLA for this one? http://dojotoolkit.org/foundation/