Represents the current state of a TabBar tab renderer.

Available since

1.0.0

.

See:

Constructor

@:value({ text : null, selected : false, index : -1, data : null })new (?data:Dynamic, index:Int = -1, selected:Bool = false, ?text:String)

Creates a new TabBarItemState object with the given arguments.

Available since

1.0.0

.

Variables

read onlydata:Dynamic

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

Available since

1.0.0

.

read onlyindex:Int

The position of the data within the collection used as the TabBar data provider.

Available since

1.0.0

.

read onlyselected:Bool

Returns whether the item is selected or not.

Available since

1.0.0

.

See:

read onlytext:String

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

Available since

1.0.0

.

See: