Closed anatoly314 closed 7 years ago
I am not aware of this plugin... just try :)
you can use core.data jsTree config.
$('#your-tree').jstree({
core : {
data : function (node, cb) {
$.ajax({ url : ... }).done(function (data) {
cb([{ "id" : data.id, "text" : data.name }])
});
}, ...
similar question posted here
@smohammedyasin , thank you. Will try it next time or perhaps it will be useful for someone else. I just make function which transform all my object accordingly to jsTree requirement every time when I need, works perfect.
As I understand from jsTree tutorial native plugin does support this feature. I just provide callback function which called on each node and I can format it as desired. Can I do same with
angularized
plugin?For example my data node is following:
So, instead of
id
I want to usegroupId
, instead ofparent
I want to useparentGroupId
and instead oftext
I want to usegroupName
.Thank you in advance.