开发者

Dojo tree selected node

开发者 https://www.devze.com 2022-12-08 06:38 出处:网络
Upon creating a tree from a store in dojo开发者_JAVA百科, it seems to pre-select the top node in my tree; does anyone know how to stop this from happening?Try this:

Upon creating a tree from a store in dojo开发者_JAVA百科, it seems to pre-select the top node in my tree; does anyone know how to stop this from happening?


Try this:

this.mytree.lastFocused.setSelected(false);


There's no official way to prevent pre-selection, although if you don't want to show any selection ever, then just write a CSS rule to suppress that style:

.dijitTreeNodeSelected { background: none !important; }

or something like that.

0

精彩评论

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

关注公众号