#7187 closed enhancement (fixed)
Tree: loaded event
Reported by: | Les | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 1.4 |
Component: | Dijit | Version: | 1.1.1 |
Keywords: | Tree, dijit | Cc: | |
Blocked By: | Blocking: |
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 (10)
comment:1 Changed 13 years ago by
Milestone: | tbd → 2.0 |
---|
comment:2 Changed 12 years ago by
comment:3 Changed 12 years ago by
Just FYI the function above will fire as soon as the top level of nodes has loaded. If the users has opened up the tree two or more levels deep, and that info is saved in a cookie, then the event will fire prematurely.
Not sure when I'll have time to get to this; will do my best.
comment:4 Changed 11 years ago by
Summary: | Tree loaded event → Tree: loaded event |
---|
comment:5 Changed 11 years ago by
Milestone: | 2.0 → 1.4 |
---|---|
Owner: | set to bill |
Status: | new → assigned |
comment:8 Changed 11 years ago by
comment:9 Changed 11 years ago by
(In [20511]) Simplification by using DeferredList?, thanks Les, refs #7187 !strict
comment:10 Changed 11 years ago by
Note: See
TracTickets for help on using
tickets.
Hi! Would it be possible to move this ticket to rel. 1.3?