Add attributes/data to a tree node?

Hi

Is it possible to add an “attribute” to a tree node? Reason I ask is I’d like to set logic based upon the node type. For example, if the node represents a “Directory” then the add-subdirectory button would be enabled. Where if the node represents a file, then add-subdirectory would be disabled :slight_smile:

So the JSON might contain something like:

	ID: 5
	Value: C:\\
	IsDirectory: True

	ID: 6
	Value: C:\\pagefile.sys
	IsDirectory: False

You can have as many attributes as necessary, tree will process all extra atributes in json or xml data.

http://webix.com/snippet/c98ca9ed