开发者

dijit Tree : finding treenode associated with new data store item

开发者 https://www.devze.com 2023-01-03 15:06 出处:网络
I want to highlight a programmatically inserted node.I\'m inserting using store.newItem; this gives me a datastore item.To do the highlighting, I need a treenode.Can someone tell开发者_StackOverflow m

I want to highlight a programmatically inserted node. I'm inserting using store.newItem; this gives me a datastore item. To do the highlighting, I need a treenode. Can someone tell开发者_StackOverflow me how to find the treenode associated with the item?

Thanks, Larry


Tree.getNodesByItem()

It returns an array since there may be multiple TreeNodes for a given item, although usually there's just one.

0

精彩评论

暂无评论...
验证码 换一张
取 消