Booleansetting.data.keep.leaf

Overview[ depends on jquery.ztree.core js ]

The leaf node's lock, the leaf node will lock the 'isParent' attribute to false.

Default: false

Boolean Format

true means: lock the leaf node, and the node which 'isParent' attribute is false can't add child nodes.

false means: don't lock the leaf node, and the node which 'isParent' attribute is false can add child nodes.

Examples of setting

1. lock the leaf node

var setting = {
	data: {
		keep: {
			leaf: true
		}
	}
};
......