开发者

Is there a way to add extra columns to a jstree?

开发者 https://www.devze.com 2023-01-23 18:44 出处:网络
I\'m using jQuery and jstree. I would like to have extra columns appear to the right of the node labels so that I can put additional info in them such as dates, text, etc.

I'm using jQuery and jstree. I would like to have extra columns appear to the right of the node labels so that I can put additional info in them such as dates, text, etc.

How can I do th开发者_JS百科is in jstree?


This is an example of the layout that I'd like to achieve, but with jstree.

Is there a way to add extra columns to a jstree?


jsTreeGrid


There is two ways to do it:

Either edit the Dom after jstree has loaded

or

Edit jstree javascript file to achieve the desired effect. Start by looking at line 313:

this.get_container().html("<ul>...
0

精彩评论

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