Booleansetting.data.keep.parent

Overview[ depends on jquery.ztree.core js ]

The parent node's lock, the parent node will lock 'isParent' attribute to true.

Default: false

Boolean Format

true means: lock the parent node, and if remove all of the parent node's child nodes, its 'isParent' attribute still keep to be true..

false means: don't lock the parent node, and if remove all of the parent node's child nodes, its 'isParent' attribute will change to be false..

Examples of setting

1. lock the parent node

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