class PageNavigator
package feathers.controls.navigators
extends BaseNavigator › FeathersControl › MeasureSprite › ValidatingSprite
implements IDataSelector<PageItem>, IIndexSelector
A container that supports navigation between views using a PageIndicator
.
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);
1.0.0
.See also:
Static variables
staticfinalread onlyCHILD_VARIANT_PAGE_INDICATOR:String = "pageNavigator_pageIndicator"
The variant used to style the PageIndicator
child component.
To override this default variant, set the
PageNavigator.customPageIndicatorVariant
property.
1.0.0
.See also:
Constructor
new(?dataProvider:IFlatCollection<PageItem>)
Creates a new PageNavigator
object.
1.0.0
.Variables
customPageIndicatorVariant:String
An optional custom variant to use for the page indicator sub-component,
instead of PageNavigator.CHILD_VARIANT_PAGE_INDICATOR
.
The customPageIndicatorVariant
will be not be used if the result of
pageIndicatorFactory
already has a variant set.
1.0.0
.See also:
gap:Float
The space, measured in pixels, between the navigator's active view and its page indicator.
1.0.0
.pageIndicatorFactory:AbstractDisplayObjectFactory<Dynamic, PageIndicator>
Creates the page indicator, which must be of type
feathers.controls.PageIndicator
.
In the following example, a custom page indicator factory is provided:
navigator.pageIndicatorFactory = () ->
{
return new PageIndicator();
};
1.0.0
.See also:
pageIndicatorPosition:RelativePosition
The position of the navigator's page indicator.
1.0.0
.showPageIndicator:Bool
Shows or hides the page indicator. If the page indicator is hidden, the
selection may only be changed programatically, or with a user swipe
gesture, if swipeEnabled
is true
.
1.4.0
.simulateTouch:Bool
Determines if mouse events should be treated like touch events when detecting a swipe.
1.0.0
.See also:
swipeEnabled:Bool
If true
, a swipe left or right with touch may be used to navigate to
the previous or next page.
1.0.0
.See also:
nextTransition:(DisplayObject, DisplayObject) ‑> IEffectContext
The default transition to use for navigating to the next page.
1.0.0
.previousTransition:(DisplayObject, DisplayObject) ‑> IEffectContext
The default transition to use for navigating to the previous page.
1.0.0
.