class TabNavigator
package feathers.controls.navigators
extends BaseNavigator › FeathersControl › MeasureSprite › ValidatingSprite
implements IDataSelector<TabItem>, IIndexSelector
A container that supports navigation between views using a tab bar.
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);
1.0.0
.See also:
Static variables
staticfinalread onlyCHILD_VARIANT_TAB_BAR:String = "tabNavigator_tabBar"
The variant used to style the TabBar
child component.
To override this default variant, set the
TabNavigator.customTabBarVariant
property.
1.0.0
.See also:
Constructor
Variables
customTabBarVariant:String
An optional custom variant to use for the tab bar sub-component,
instead of TabNavigator.CHILD_VARIANT_TAB_BAR
.
The customTabBarVariant
will be not be used if the result of
tabBarFactory
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 tab bar.
1.0.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 tab.
1.0.0
.See also:
tabBarFactory:AbstractDisplayObjectFactory<Dynamic, TabBar>
Creates the tab bar, which must be of type feathers.controls.TabBar
.
In the following example, a custom tab bar factory is provided:
navigator.tabBarFactory = () ->
{
return new TabBar();
};
1.0.0
.See also:
nextTransition:(DisplayObject, DisplayObject) ‑> IEffectContext
The default transition to use for navigating to the next tab.
1.0.0
.previousTransition:(DisplayObject, DisplayObject) ‑> IEffectContext
The default transition to use for navigating to the previous tab.
1.0.0
.