开发者

How to expand a particular node in YUI treeview

开发者 https://www.devze.com 2023-02-07 11:32 出处:网络
I want to expand a particular node on click of a string in YUI. I have used YUI treeview and I am preparing a string of nodes that satis开发者_开发知识库fies search criteria.Now, I want to expand thos

I want to expand a particular node on click of a string in YUI. I have used YUI treeview and I am preparing a string of nodes that satis开发者_开发知识库fies search criteria.Now, I want to expand those nodes on click on each string .

Can anyone help me out. Thanks


You can use the focus() event, as it causes the node focused to automatically expand. There is also a method toggle(), which might help. http://developer.yahoo.com/yui/treeview/

0

精彩评论

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