TabControl
Tab control that hosts panes inside. See also TabPane
Extends
Constructors
new TabControl()
new TabControl(
dart):TabControl
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
Overrides
Source
Properties
| Property | Modifier | Type | Default value | Description | Inherited from |
|---|---|---|---|---|---|
_functions | protected | Func[] | [] | - | DartWidget._functions |
_properties | protected | Property[] | [] | - | DartWidget._properties |
_root | protected | HTMLElement | undefined | - | DartWidget._root |
dart | public | any | undefined | - | DartWidget.dart |
factory | public | null | Func | null | Constructor function. No parameters, returns [Widget]. | DartWidget.factory |
isDetached | public | boolean | false | - | DartWidget.isDetached |
props | public | any | undefined | - | DartWidget.props |
subs | public | Subscription[] | undefined | - | DartWidget.subs |
temp | public | any | undefined | Contains auxiliary information | DartWidget.temp |
Accessors
children
getchildren():Widget<any>[]
Parent widget up the DOM tree, or null.
Returns
Widget<any>[]
Source
currentPane
getcurrentPane():TabPane
Currently visible pane
setcurrentPane(v):void
Parameters
| Parameter | Type |
|---|---|
v | TabPane |
Returns
Source
header
getheader():HTMLDivElement
Header shown on top of the control
Returns
HTMLDivElement
Source
onBeforeTabChanged
getonBeforeTabChanged():Observable<any>
Occurs before the active pane is changed
Returns
Observable<any>
Source
onTabAdded
getonTabAdded():Observable<any>
Occurs after a pane is added
Returns
Observable<any>
Source
onTabChanged
getonTabChanged():Observable<any>
Occurs after the active pane is changed
Returns
Observable<any>
Source
onTabRemoved
getonTabRemoved():Observable<any>
Occurs after a pane is removed
Returns
Observable<any>
Source
panes
getpanes():TabPane[]
Panes currently present in the pane control. Do not change the array, use addPane instead
Returns
TabPane[]
Source
parent
getparent():null|Widget<any>
Parent widget up the DOM tree, or null.
Returns
null | Widget<any>
Source
root
getroot():HTMLDivElement
Visual root
Returns
HTMLDivElement
Source
type
gettype():string
Returns
string
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
addProperty()
privateaddProperty(propertyName,propertyType,defaultValue,options):any
Registers an property with the specified type, name, and defaultValue.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
propertyName | string | undefined | |
propertyType | "string" | "bigint" | "object" | "map" | "file" | "view" | "blob" | "int" | "double" | "bool" | "byte_array" | "datetime" | "qnum" | "dataframe" | "num" | "string_list" | "dataframe_list" | "cell" | "column" | "column_list" | "graphics" | "tablerowfiltercall" | "colfiltercall" | "bitset" | "dynamic" | "viewer" | "list" | "semantic_value" | "func" | "funccall" | "property" | "categorical" | "numerical" | "GridCellRenderArgs" | "element" | "TableView" | "User" | "Menu" | "Project" | "event_data" | "progressindicator" | "Credentials" | "ScriptEnvironment" | "Notebook" | undefined | |
defaultValue | any | null | |
options | null | object & IProperty | null |
Returns
any
Inherited from
See
Registered property gets added to properties. Returns default value, thus allowing to combine registering a property with the initialization
Source
apply()
apply(
properties):Widget<any>
Parameters
| Parameter | Type | Description |
|---|---|---|
properties | object |
Returns
Widget<any>
Inherited from
Source
clear()
clear():
void
Removes all panes
Returns
void
Source
detach()
detach():
void
Gets called when a widget is detached and will no longer be used. Typically used for unsubscribing from events. Be sure to call super.detach() if this method is overridden.
Returns
void
Inherited from
Source
getDartProperties()
getDartProperties():
any[]
Returns
any[]
Inherited from
DartWidget . getDartProperties
Source
getFunctions()
getFunctions():
Func[]
Functions that are applicable to this particular widget. Used in the UI to display context actions, and for the AI integrations.
Returns
Func[]
Inherited from
Source
getPane()
getPane(
name):TabPane
Gets the pane with the specified name
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
Source
getProperties()
getProperties():
Property[]
Returns all properties of this widget.
Returns
Property[]
Inherited from
Source
onFrameAttached()
onFrameAttached(
dataFrame):void
Parameters
| Parameter | Type |
|---|---|
dataFrame | DataFrame |
Returns
void
Inherited from
Source
onPropertyChanged()
onPropertyChanged(
property):void
Gets called when viewer's property is changed.
Parameters
| Parameter | Type | Description |
|---|---|---|
property | null | Property | or null, if multiple properties were changed. |
Returns
void
Inherited from
DartWidget . onPropertyChanged
Source
sourceRowsChanged()
sourceRowsChanged():
void
Returns
void
Inherited from
DartWidget . sourceRowsChanged
Source
sub()
sub(
subscription):void
Registers a subscription to an external event.
Parameters
| Parameter | Type | Description |
|---|---|---|
subscription | Subscription |
Returns
void
Inherited from
Source
toDart()
toDart():
any
Returns
any
Inherited from
Source
create()
staticcreate(vertical):TabControl
Creates a new TabControl
Parameters
| Parameter | Type | Default value |
|---|---|---|
vertical | boolean | false |
Returns
Source
find()
staticfind(root):null|Widget<any>
Finds existing widget from its visual root.
Parameters
| Parameter | Type |
|---|---|
root | Element |
Returns
null | Widget<any>
Inherited from
Source
fromRoot()
staticfromRoot(root):Widget<any>
Creates a new widget from the root element.
Parameters
| Parameter | Type |
|---|---|
root | HTMLElement |
Returns
Widget<any>
Inherited from
Source
getAll()
staticgetAll():Widget<any>[]
Returns all currently active widgets.
Returns
Widget<any>[]