Properties
-
axis
↔ Axis
-
The axis along which the child panel will be rendered
getter/setter pair
-
body
↔ Widget?
-
getter/setter pair
-
constraints
↔ BoxConstraints?
-
The layout constraints are used to check when to recalculate the sizes of the
child panels
getter/setter pair
-
context
→ ReactiveContext
-
Override this method to use a custom context.
no setterinherited
-
defaultPage
↔ Widget
-
Widget to display when a new tab is opened in this tab
getter/setter pair
-
flex
↔ double
-
The initial flex factor to use when this panel is a child panel. Defaults to 1
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
id
↔ String
-
getter/setter pair
-
panels
↔ ObservableList<TabPanel>
-
Child panels
getter/setter pair
-
panelSizes
↔ ObservableList<double>?
-
The sizes of the child panels
getter/setter pair
-
parent
↔ TabPanel?
-
The parent panel
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedTab
↔ int
-
The index of the selected tab
getter/setter pair
-
tabs
↔ ObservableList<Tab>
-
Tabs of this panel. Ignored if panels is not empty.
getter/setter pair
Methods
-
acceptTab(Tab tab)
→ void
-
Move the dragged
tab
to this panel.
-
calculatePanelSizes(BoxConstraints constraints, double dividerWidth)
→ void
-
Calculates the sizes of the child panel when they change, or when the parent
viewport dimensions change
-
closeLeft(String id)
→ void
-
Close all tabs to the left of the one with
id
. Locked tabs are not closed.
-
closeOtherTabs(String id)
→ void
-
Close all tabs other than the one having
id
. Locked tabs are not closed.
-
closePanel()
→ void
-
Close the panel including all its tabs
-
closeRight(String id)
→ void
-
Close all tabs to the right of the one with
id
. Locked tabs are not closed.
-
closeTab(String id)
→ void
-
Close the tab with the
id
. This does not respect the locked
values
-
newTab({Widget? page, String tabId = '', TabPosition position = TabPosition.after})
→ void
-
Open a new tab with
page
as the body.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
pushPage({Widget? page, bool forceNewTab = false})
→ void
-
Push a
page
to the current tab.
-
selectTab(String id)
→ void
-
-
splitPanel({required String panelId, String? tabId, Axis axis = Axis.horizontal, TabPosition? position})
→ void
-
Splits the current panel in two, moving the tabs to the one specified by
position
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateSize(int index, DragUpdateDetails dragDetails)
→ void
-
Resize the child panels when the user is draggin the using the panel dividers.
-
willAcceptTab(Tab? tab)
→ bool
-
Callback to check if a dragged
tab
is acceptable by the current panel.