View source
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);
Available since
1.0.0
.See also:
Constructor
Variables
simulateTouch:Bool
Determines if mouse events should be treated like touch events when detecting a swipe.
Available since
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.
Available since
1.0.0
.See also:
nextTransition:(DisplayObject, DisplayObject) ‑> IEffectContext
The default transition to use for navigating to the next tab.
Available since
1.0.0
.previousTransition:(DisplayObject, DisplayObject) ‑> IEffectContext
The default transition to use for navigating to the previous tab.
Available since
1.0.0
.