SMART datagrid v.1 > Classes > TreeOptions

Back  Forward

DataLudi.TreeOptions.iconCallback  property

返回将会显示在树行的图标索引的回调函数。 

    function (row:TreeRow): Integer;

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

默认值为null.

Getter
function iconCallback(): Function
Setter
function setIconCallback(value: Function)
See Also
TreeRow.fieldIndex
iconField
树概述
Examples
Hello Tree