I have list of value in object. I need to add button on each node in jstree.
My code :
This is static code which is working for single value.
$('#tree').jstree({
core:{
data:[
'<button>Press</button> One'
]
},
plugins:['checkbox']
});
but i want to add button dynamically to each node.
var arrayCollections = ${jsonArray};
$('#jstreesD').jstree({
'core' : {
],
'data' :[ arrayCollections,'<button>Press</button> Ok'],
},
})
<div id="jstreesD"></div>
but this is not working. Is there a way to do like this.
Thanks, VJM