SMART datagrid v.1 > Classes > TreeOptions

Back  Forward

DataLudi.TreeOptions.iconCallback  property

ツリー行に表示するアイコンインデックスをリターンするコールバック関数。 

    function (row:TreeRow): Integer;

ツリー行のアイコンはまずTreeRow.iconIndexundefinedでなければその値を使う。 iconIndexがundefinediconCallbackが設定されたらiconCallbackでリターンされる値を利用する。 最後にiconCallbackが指定されていない場合iconFieldで指定したフィールドの値を使う。 

デフォルト値はnull.

Getter
function iconCallback(): Function
Setter
function setIconCallback(value: Function)
See Also
TreeRow.fieldIndex
iconField
ツリー概要
Examples
Hello Tree