hi
i need your help
i build tree with jstree 3.3.15. But unique custom duplicate function not working (console.info).
$('#jstree').jstree({ 'core': { 'data': categories, "animation": 0, "check_callback": true }, "unique": { case_sensitive: true, trim_whitespace: true, duplicate: function(name, counter) { console.info(name) return name + "のコピー"; // This would just return the duplicate name to use as the node is created }, "error_callback": function(n, p, f) { console.info("Duplicate node " + n + " with function " + f + "!"); } }, "plugins": [ "unique", "contextmenu", "dnd", "state", "wholerow" ], })
hi i need your help i build tree with jstree 3.3.15. But unique custom duplicate function not working (console.info).
$('#jstree').jstree({ 'core': { 'data': categories, "animation": 0, "check_callback": true }, "unique": { case_sensitive: true, trim_whitespace: true, duplicate: function(name, counter) { console.info(name) return name + "のコピー"; // This would just return the duplicate name to use as the node is created }, "error_callback": function(n, p, f) { console.info("Duplicate node " + n + " with function " + f + "!"); } }, "plugins": [ "unique", "contextmenu", "dnd", "state", "wholerow" ], })