TabView
The TabView control is used to display multiple panels as tabs.
The TabView
inherits all the methods and properties from the base class View
.
Constructor:
constructor(parent: View)
Creates an instance of TabView control.parent
: the View containing the control itself.
Properties:
tabs: View[]
array of views that represent the tabs in the TabView.activeTab: View
Holds a reference to the currently active tab View.activeTabIndex: number
Represents the zero based index of the currently active tab.
Methods:
changing(handler: (nextView: View)=> any)
Registers an event handler that is triggered before the tab changes.change(handler: ()=> any)
Registers an event handler that is triggered after the tab has changed.