An individual item that will be displayed by a TabNavigator component.

The following example creates a tab navigator and adds some items:

var navigator = new TabNavigator();
navigator.dataProvider = new ArrayCollection([
	TabItem.withClass("Home", HomeView),
	TabItem.withClass("Profile", ProfileView),
	TabItem.withClass("Settings", SettingsView)
]);
addChild(this.navigator);
Available since

1.0.0

.

See also:

Static methods

staticwithClass(text:String, viewClass:Class<DisplayObject>):TabItem

Creates a TabItem that instantiates a view from a class that extends DisplayObject when the TabNavigator requests the item's view.

Available since

1.0.0

.

staticwithDisplayObject(text:String, viewInstance:DisplayObject):TabItem

Creates a TabItem that always returns the same DisplayObject instance when the TabNavigator requests the item's view.

Available since

1.0.0

.

staticwithFactory(text:String, viewFactory:AbstractDisplayObjectFactory<Dynamic, DisplayObject>):TabItem

Creates a TabItem using a DisplayObjectFactory when the TabNavigator requests the item's view.

Available since

1.3.0

.

staticwithFunction(text:String, viewFunction:() ‑> DisplayObject):TabItem

Creates a TabItem that calls a function that returns a DisplayObject when the TabNavigator requests the item's view.

Available since

1.0.0

.

Variables

text:String

The text to display in the tab bar.

Available since

1.0.0

.