SMART datagrid v.1 > Classes > TreeOptions

Back  Forward

DataLudi.TreeOptions.iconField  property

The field in which contains icon index value which will be displayed in Tree Row

You can specify as Field Index or Field Name

First, if TreeRow.iconIndex is not undefined, the icon of tree row will use the corresponding value. If iconIndex is undefined and set iconCallback, it will use the value returned by iconCallback. Lastly, if it has not specify iconCallback, it will use the value of field which has been specified by iconField. 

Defaults to undefined.

Getter
function iconField(): String|Integer
Setter
function setIconField(value: String|Integer)
See Also
TreeRow.fieldIndex
iconCallback
Tree Overview
Examples
Hello Tree