An individual item that will be displayed by a PageNavigator
component.
The following example creates a page navigator and adds some items:
var navigator = new PageNavigator();
navigator.dataProvider = new ArrayCollection([
PageItem.withClass(WizardView1),
PageItem.withClass(WizardView1),
PageItem.withClass(WizardView3)
]);
addChild(this.navigator);
Available since
1.0.0
.See also:
Static methods
staticwithClass(viewClass:Class<DisplayObject>):PageItem
Creates a PageItem
that instantiates a view from a class that extends
DisplayObject
when the PageNavigator
requests the item's view.
Available since
1.0.0
.staticwithDisplayObject(viewInstance:DisplayObject):PageItem
Creates a PageItem
that always returns the same DisplayObject
instance when the PageNavigator
requests the item's view.
Available since
1.0.0
.staticwithFactory(viewFactory:AbstractDisplayObjectFactory<Dynamic, DisplayObject>):PageItem
Creates a PageItem
using a DisplayObjectFactory
when the
PageNavigator
requests the item's view.
Available since
1.3.0
.staticwithFunction(viewFunction:() ‑> DisplayObject):PageItem
Creates a PageItem
that calls a function that returns a DisplayObject
when the PageNavigator
requests the item's view.
Available since
1.0.0
.