SMART datagrid v.1 > Classes > TreeOptions

Back  Forward

DataLudi.TreeOptions.iconField  property

包含将会显示在树行的图标索引值的字段。 

可以指定为字段索引字段名称。 

首先,如果TreeRow.iconIndex不是undefined,树行的图标就会使用该值。 如果iconIndex是undefined并且设置iconCallback,就会使用通过iconCallback而返回的值。 最后,如果没有指定iconCallback,就会使用通过iconField而指定的字段值。 

默认值为undefined.

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