Open GikkiAres opened 2 years ago
select node in onRendered event callback failed.
Error is not initialized. But if call after 200ms,suceeded. It seems the tree is not initialized,event the render event is sended.
Relative code is here:
onRendered: function(event, data) { console.log(`\nTreeView/Rendered\n`); let firstRootProjectNode = data[0]; console.log(`First root project is:\n${JSON.stringify(firstRootProjectNode)}\n`); $('#tree').treeview('selectNode', [ [firstRootProjectNode], { silent: false } ]); }
select node in onRendered event callback failed.
Error is not initialized. But if call after 200ms,suceeded. It seems the tree is not initialized,event the render event is sended.
Relative code is here: