Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

jquery

jstree

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 this in jstree?


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

Example

like image 865
John Mills Avatar asked Nov 08 '10 04:11

John Mills


2 Answers

jsTreeGrid

like image 185
Radek Avatar answered Nov 03 '22 12:11

Radek


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>...
like image 28
Kieran Andrews Avatar answered Nov 03 '22 12:11

Kieran Andrews