jsTree Get new node AFTER node is created

前端 未结 1 660
暗喜
暗喜 2021-01-23 03:41

I am attempting to obtain the text value of the newly created node AFTER the user edits the name of the new node and presses Enter.

When I do this:

            


        
1条回答
  •  深忆病人
    2021-01-23 04:14

    The event you might be looking for is rename_node.jstree. It would look like:

    .on('rename_node.jstree', function (e, data) {
      //data.text is the new name:
      alert(data.text);
    });
    

    0 讨论(0)
提交回复
热议问题