简体   繁体   中英

How to get focused node in dijit.Tree?

是否有一种简单的方法来检索dijit.Tree中哪个树节点当前具有焦点/突出显示?

There is no documentation for it, but the lastFocused property of the dijit.Tree instance can be used to obtain the node with the current focus. If no item has the current focus, the value will be null . The _onNodeFocus method of dijit/Tree.js indicates how the lastFocused property is used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM