TabControl
Tab control that hosts panes inside. See also TabPane
Constructors
new TabControl()
new TabControl(
dart
):TabControl
Parameters
Parameter | Type |
---|---|
dart | any |
Returns
Source
Properties
Property | Type |
---|---|
dart | any |
Accessors
currentPane
get
currentPane():TabPane
Currently visible pane
set
currentPane(v
):void
Parameters
Parameter | Type |
---|---|
v | TabPane |
Returns
Source
header
get
header():HTMLDivElement
Header shown on top of the control
Returns
HTMLDivElement
Source
onBeforeTabChanged
get
onBeforeTabChanged():Observable
<any
>
Occurs before the active pane is changed
Returns
Observable
<any
>
Source
onTabAdded
get
onTabAdded():Observable
<any
>
Returns
Observable
<any
>
Source
onTabChanged
get
onTabChanged():Observable
<any
>
Occurs after the active pane is changed
Returns
Observable
<any
>
Source
onTabRemoved
get
onTabRemoved():Observable
<any
>
Returns
Observable
<any
>
Source
panes
get
panes():TabPane
[]
Panes currently present in the pane control. Do not change the array, use addPane instead
Returns
TabPane
[]
Source
root
get
root():HTMLDivElement
Visual root
Returns
HTMLDivElement
Source
Methods
addPane()
addPane(
name
,getContent
,icon
,options
?):TabPane
Adds a new pane with the specified name
Parameters
Parameter | Type | Default value |
---|---|---|
name | string | undefined |
getContent | () => HTMLElement | undefined |
icon | any | null |
options ? | object | undefined |
options.allowClose ? | boolean | undefined |
Returns
Source
clear()
clear():
void
Removes all panes
Returns
void
Source
getPane()
getPane(
name
):TabPane
Gets the pane with the specified name
Parameters
Parameter | Type |
---|---|
name | string |
Returns
Source
create()
static
create(vertical
):TabControl
Creates a new TabControl
Parameters
Parameter | Type | Default value |
---|---|---|
vertical | boolean | false |