You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the page http://www.jstree.com/documentation/json_data it say this
// omit attr if not needed; the attr object gets passed to the jQuery attr function
4 "attr" : { "id" : "node_identificator", "some-other-attribute" : "attribute_value" },
but that does not work for me... I found this doco in the code
// you can manipulate the output
> { "title" : "The title of the parsed node", "li_attr" : { "id" : "id_for_li" }, "a_attr" : { "href" : "http://jstree.com" } }
So adding the following to my code I was able to set the id of the li "li_attr" : { "id" : "id_for_li" }.
Can you please update the doco if the attr does not work anymore.
thanks
Raf
The text was updated successfully, but these errors were encountered:
On the page http://www.jstree.com/documentation/json_data it say this
// omit
attr
if not needed; theattr
object gets passed to the jQueryattr
function4 "attr" : { "id" : "node_identificator", "some-other-attribute" : "attribute_value" },
but that does not work for me... I found this doco in the code
So adding the following to my code I was able to set the id of the li "li_attr" : { "id" : "id_for_li" }.
Can you please update the doco if the attr does not work anymore.
thanks
Raf
The text was updated successfully, but these errors were encountered: