class fwt::TabPane
sys::Obj fwt::Widget fwt::TabPane
@Js
@Serializable { collection=true }
TabPane is a container used organize a set of Tabs
. Tabs are added and removed using normal Widget.add
and Widget.remove
.
- add
-
@Operator
virtual override This add(Widget? kid)Only
Tab
children may be added. - index
-
Get the index of the specified tab.
- onSelect
-
EventListeners onSelect()
Callback when the new tab is selected.
Event id fired:
Event fields:
Event.index
: index of selected tabEvent.data
: new active Tab instance
- selected
-
The currently selected tab.
- selectedIndex
-
The currently selected index of
tabs
. - tabs
-
Tab[] tabs()
Get the list of installed tabs. Tabs are added and removed using normal
Widget.add
andWidget.remove
.