mardi 20 octobre 2015

How to set a node's type on creation?

I want to set a node's type on its creation. This is what I'm trying:

$("#tree").jstree("create_node", parentId, {text: "mynode", id: "myid", type: "mytype"}, "last");

This doesn't set the type. I know set_type exists, but I wonder if this is possible on the node's creation.




Aucun commentaire:

Enregistrer un commentaire