When double-click the parent node, 'dblClickExpand' is used to decide whether to expand the parent node.
Default: true
true means: When double-click the parent node, zTree will expand the parent node.
false means: When double-click the parent node, zTree will not expand the parent node.
zTree unique identifier: treeId.
JSON data object of the node which be double-clicked.
Return value is same as 'Boolean Format'
var setting = {
view: {
dblClickExpand: false
}
};
......
function dblClickExpand(treeId, treeNode) {
return treeNode.level > 0;
};
var setting = {
view: {
dblClickExpand: dblClickExpand
}
};
......