TabControl
Defined in: src/widgets/containers.ts:121
Tab control that hosts panes inside. See also TabPane
Extends
Constructors
Constructor
new TabControl(
dart):TabControl
Defined in: src/widgets/containers.ts:123
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
TabControl
Overrides
Properties
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|---|---|---|---|---|---|---|
_functions | protected | Func[] | [] | - | DartWidget._functions | src/widgets/base.ts:243 |
_properties | protected | Property[] | [] | - | DartWidget._properties | src/widgets/base.ts:242 |
_root | protected | HTMLElement | undefined | - | DartWidget._root | src/widgets/base.ts:241 |
dart | public | any | undefined | - | DartWidget.dart | src/widgets/base.ts:246 |
factory | public | Func | null | null | Constructor function. No parameters, returns [Widget]. | DartWidget.factory | src/widgets/base.ts:239 |
isDetached | public | boolean | false | - | DartWidget.isDetached | src/widgets/base.ts:247 |
props | public | any | undefined | - | DartWidget.props | src/widgets/base.ts:244 |
subs | public | Subscription[] | undefined | - | DartWidget.subs | src/widgets/base.ts:245 |
temp | public | any | undefined | Contains auxiliary information | DartWidget.temp | src/widgets/base.ts:236 |
Accessors
aiDescription
Get Signature
get aiDescription():
string|null
Defined in: src/widgets/base.ts:412
AI briefing of the underlying Dart widget.
Returns
string | null
Set Signature
set aiDescription(
x):void
Defined in: src/widgets/base.ts:417
A short AI-facing briefing: what this widget is, what its functions do, and how the assistant should approach it (e.g. which getFunctions entries to call first). Shown to the AI assistant as part of the workspace context.
Parameters
| Parameter | Type |
|---|---|
x | string | null |
Returns
void
Inherited from
children
Get Signature
get children():
Widget<any>[]
Defined in: src/widgets/base.ts:328
Parent widget up the DOM tree, or null.
Returns
Widget<any>[]
Inherited from
currentPane
Get Signature
get currentPane():
TabPane
Defined in: src/widgets/containers.ts:170
Currently visible pane
Returns
Set Signature
set currentPane(
v):void
Defined in: src/widgets/containers.ts:171
Parameters
| Parameter | Type |
|---|---|
v | TabPane |
Returns
void
header
Get Signature
get header():
HTMLDivElement
Defined in: src/widgets/containers.ts:144
Header shown on top of the control
Returns
HTMLDivElement
onBeforeTabChanged
Get Signature
get onBeforeTabChanged():
Observable<any>
Defined in: src/widgets/containers.ts:174
Occurs before the active pane is changed
Returns
Observable<any>
onTabAdded
Get Signature
get onTabAdded():
Observable<any>
Defined in: src/widgets/containers.ts:180
Occurs after a pane is added
Returns
Observable<any>
onTabChanged
Get Signature
get onTabChanged():
Observable<any>
Defined in: src/widgets/containers.ts:177
Occurs after the active pane is changed
Returns
Observable<any>
onTabRemoved
Get Signature
get onTabRemoved():
Observable<any>
Defined in: src/widgets/containers.ts:183
Occurs after a pane is removed
Returns
Observable<any>
panes
Get Signature
get panes():
TabPane[]
Defined in: src/widgets/containers.ts:150
Panes currently present in the pane control. Do not change the array, use addPane instead
Returns
TabPane[]
parent
Get Signature
get parent():
Widget<any> |null
Defined in: src/widgets/base.ts:325
Parent widget up the DOM tree, or null.
Returns
Widget<any> | null
Inherited from
root
Get Signature
get root():
HTMLDivElement
Defined in: src/widgets/containers.ts:139
Visual root
Returns
HTMLDivElement
Overrides
type
Get Signature
get type():
string
Defined in: src/widgets/base.ts:405
Returns
string
Inherited from
Methods
addPane()
addPane(
name,getContent,icon?,options?):TabPane
Defined in: src/widgets/containers.ts:160
Adds a new pane with the specified name
Parameters
| Parameter | Type | Default value |
|---|---|---|
name | string | undefined |
getContent | () => HTMLElement | undefined |
icon | any | null |
options? | { allowClose: boolean; } | undefined |
options.allowClose? | boolean | undefined |
Returns
apply()
apply(
properties):Widget
Defined in: src/widgets/base.ts:284
Parameters
| Parameter | Type | Description |
|---|---|---|
properties | object | - |
Returns
Inherited from
clear()
clear():
void
Defined in: src/widgets/containers.ts:165
Removes all panes
Returns
void
detach()
detach():
void
Defined in: src/widgets/base.ts:337
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
getDartProperties()
getDartProperties():
any[]
Defined in: src/widgets/base.ts:313
Returns
any[]
Inherited from
getFunctions()
getFunctions():
Func[]
Defined in: src/widgets/base.ts:408
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
getPane()
getPane(
name):TabPane
Defined in: src/widgets/containers.ts:155
Gets the pane with the specified name
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
getProperties()
getProperties():
Property[]
Defined in: src/widgets/base.ts:407
Returns all properties of this widget.
Returns
Property[]
Inherited from
getWidgetStatus()
getWidgetStatus():
IWidgetStatus
Defined in: src/widgets/base.ts:409
Returns the widget's runtime structure for automated testing and introspection.
Returns
Inherited from
onEvent()
onEvent(
eventId?):Observable<any>
Defined in: src/widgets/base.ts:423
Observes events with the specified eventId. Override in subclasses to provide actual events.
Parameters
| Parameter | Type | Default value |
|---|---|---|
eventId | string | null | null |
Returns
Observable<any>
Inherited from
onFrameAttached()
onFrameAttached(
dataFrame):void
Defined in: src/widgets/base.ts:319
Parameters
| Parameter | Type |
|---|---|
dataFrame | DataFrame |
Returns
void
Inherited from
onPropertyChanged()
onPropertyChanged(
property):void
Defined in: src/widgets/base.ts:311
Gets called when viewer's property is changed.
Parameters
| Parameter | Type | Description |
|---|---|---|
property | Property | null | or null, if multiple properties were changed. |
Returns
void
Inherited from
sourceRowsChanged()
sourceRowsChanged():
void
Defined in: src/widgets/base.ts:317
Returns
void
Inherited from
sub()
sub(
subscription):void
Defined in: src/widgets/base.ts:277
Registers a subscription to an external event.
Parameters
| Parameter | Type | Description |
|---|---|---|
subscription | Subscription | - |
Returns
void
Inherited from
toDart()
toDart():
any
Defined in: src/widgets/base.ts:269
Returns
any
Inherited from
create()
staticcreate(options?,key?):TabControl
Defined in: src/widgets/containers.ts:133
Creates a new TabControl. When [options.key] is provided, the currently selected pane is persisted across sessions in localStorage. Without a key, state is not remembered.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
options | boolean | ITabControlOptions | {} | see ITabControlOptions. Passing a boolean (vertical) is deprecated. |
key | string | null | null | deprecated, use options.key instead. |
Returns
TabControl
find()
staticfind(root):Widget<any> |null
Defined in: src/widgets/base.ts:265
Finds existing widget from its visual root.
Parameters
| Parameter | Type |
|---|---|
root | Element |
Returns
Widget<any> | null
Inherited from
fromRoot()
staticfromRoot(root):Widget
Defined in: src/widgets/base.ts:382
Creates a new widget from the root element.
Parameters
| Parameter | Type |
|---|---|
root | HTMLElement |
Returns
Inherited from
getAll()
staticgetAll():Widget<any>[]
Defined in: src/widgets/base.ts:260
Returns all currently active widgets.
Returns
Widget<any>[]