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