sridhars711 / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

Support for function to run after a lazy tree is initialized or a branch was loaded. #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When loading a tree from an Ajax data source, it would be nice to specify a 
function within the tree 
initializer that would run once the data has been loaded and processed (e.g., 
activate a certain 
node in the tree programmatically).

Original issue reported on code.google.com by donka...@gmail.com on 4 Apr 2009 at 8:48

GoogleCodeExporter commented 9 years ago
tree.initAjax() and node.appendAjax() should accept a callback funtion as an 
optional
argument.
This callback is called after the child nodes where loaded.
(Another use case would be re-binding events to the new nodes, to enable 
tooltips, etc .)

Could be named onSuccess (and onError?).

Original comment by moo...@wwwendt.de on 5 Apr 2009 at 6:26

GoogleCodeExporter commented 9 years ago
node.appendAjax() and options.initAjax now support passing 'success' and 'error'
callbacks (r209)

Original comment by moo...@wwwendt.de on 11 Apr 2009 at 10:31

GoogleCodeExporter commented 9 years ago
Issue 90 has been merged into this issue.

Original comment by moo...@wwwendt.de on 17 Apr 2009 at 10:59

GoogleCodeExporter commented 9 years ago
considered verified

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:12