Ticket #7187 (new enhancement)
Tree loaded event
| Reported by: | Les | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0 |
| Component: | Dijit | Version: | 1.1.1 |
| Severity: | normal | Keywords: | Tree, dijit |
| Cc: |
Description
I'd be grateful if tree loaded event could be added to the dijit.Tree widget :)
Here's the code I currently use (dojo 1.0.2) to simulate this event:
dojo.connect(dijit.Tree.prototype, '_onLoadAllItems', function(/*_TreeNode*/ node, /*dojo.data.Item[]*/ items) {
var tree = this;
if(!tree._loaded) {
dojo.publish(tree.id + '-loaded', [tree]);
tree._loaded = true;
}
});
Change History
Note: See
TracTickets for help on using
tickets.