Represents the current state of a TreeView item renderer.

Available since

1.0.0

.

See also:

Constructor

@:value({ text : null, selected : false, branch : false, layoutIndex : -1, location : null, data : null })new(?data:Dynamic, ?location:Array<Int>, layoutIndex:Int = -1, branch:Bool = false, selected:Bool = false, ?text:String)

Creates a new TreeViewItemState object with the given arguments.

Available since

1.0.0

.

Variables

@:value(false)branch:Bool = false

Returns whether the item is a branch or not.

Available since

1.0.0

.

data:Dynamic

An item from the collection used as the TreeView data provider.

Available since

1.0.0

.

@:value(true)enabled:Bool = true

Returns whether the item is enabled or not.

Available since

1.0.0

.

See also:

@:value(-1)layoutIndex:Int = -1

Returns the location of the item in the TreeView layout.

Available since

1.0.0

.

location:Array<Int>

The location of the item in the TreeView data provider.

Available since

1.0.0

.

@:value(false)opened:Bool = false

Returns whether the branch is opened or closed. If the item is a leaf, the value will always be false.

Available since

1.0.0

.

owner:TreeView

Returns a reference to the TreeView that contains this item.

Available since

1.0.0

.

recyclerID:String

Returns the item's recycler ID.

Available since

1.0.0

.

See also:

@:value(false)selected:Bool = false

Returns whether the item is selected or not.

Available since

1.0.0

.

text:String

Returns the text to display for the item, as returned by the function TreeView.itemToText.

Available since

1.0.0

.

See also: