String / Function(treeId, treeNode)setting.edit.removeTitle

Overview[ depends on jquery.ztree.exedit js ]

the title of the remove button DOM. It is valid when [setting.edit.enable = true & setting.edit.showRemoveBtn = true]

Default: "remove"

String Format

When the mouse over the remove button, the browser auto pop-up message content.

Function Parameter Descriptions

treeIdString

zTree unique identifier: treeId, easy for users to control.

treeNodeJSON

JSON data object of the node which show the remove button

Return String

Return value is same as 'String Format'

Examples of setting & function

1. Set title is 'remove the node' about all the remove button

var setting = {
	edit: {
		enable: true,
		showRemoveBtn: true,
		removeTitle: "remove the node"
	}
};
......

2. Set title is 'remove the parent node' about the parent node, and is 'remove the leaf node' about the leaf node

function setRemoveTitle(treeId, treeNode) {
	return treeNode.isParent ? "remove the parent node":"remove the leaf node";
}
var setting = {
	edit: {
		enable: true,
		showRemoveBtn: true,
		removeTitle: setRemoveTitle
	}
};
......