TabPane is a container used organize a set of Tabs
. Tabs are added and removed using normal Widget.add
and Widget.remove
.
Slots
- addSource
-
override This add(Widget? kid)
Overrides fwt::Widget.add
Only
Tab
children may be added. - indexSource
-
Get the index of the specified tab.
- onSelectSource
-
readonly EventListeners onSelect := EventListeners()
Callback when the new tab is selected.
Event id fired:
Event fields:
Event.index
: index of selected tabEvent.data
: new active Tab instance
- selectedSource
-
Tab? selected
The currently selected tab.
- selectedIndexSource
-
native Int? selectedIndex
The currently selected index of tabs.
- tabsSource
-
Tab[] tabs()
Get the list of installed tabs. Tabs are added and removed using normal
Widget.add
andWidget.remove
.