开发者

jstree rename node problem

开发者 https://www.devze.com 2023-02-28 01:23 出处:网络
bind(\"rename.jstree\", function (event, data) { $(\"#treeDiv\").jstree._focused().get_selected().rename();
bind("rename.jstree", function (event, data) { 
$("#treeDiv").jstree._focused().get_selected().rename(); 
)} 

Is not working while I am trying to rename开发者_C百科 a node.

If anyone knows please let me know.


Try

.bind("rename_node.jstree", function (NODE, REF_NODE) {
// Do your operation
})


I found that if you put styling tags such as <b> </b> in the <li> item it prevents the rename. Make sure any styling is applied through css if this is the problem, and that should fix it. Also try using $("#demo1").jstree("rename",node);

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号