Skip to main content

TabControl

Tab control that hosts panes inside. See also TabPane

Extends

Constructors

new TabControl()

new TabControl(dart): TabControl

Parameters

ParameterType
dartany

Returns

TabControl

Overrides

DartWidget . constructor

Source

src/widgets.ts:590

Properties

PropertyModifierTypeDefault valueDescriptionInherited from
_functionsprotectedFunc[][]-DartWidget._functions
_propertiesprotectedProperty[][]-DartWidget._properties
_rootprotectedHTMLElementundefined-DartWidget._root
dartpublicanyundefined-DartWidget.dart
factorypublicnull | FuncnullConstructor function. No parameters, returns [Widget].DartWidget.factory
isDetachedpublicbooleanfalse-DartWidget.isDetached
propspublicanyundefined-DartWidget.props
subspublicSubscription[]undefined-DartWidget.subs
temppublicanyundefinedContains auxiliary informationDartWidget.temp

Accessors

children

get children(): Widget<any>[]

Parent widget up the DOM tree, or null.

Returns

Widget<any>[]

Source

src/widgets.ts:289


currentPane

get currentPane(): TabPane

Currently visible pane

set currentPane(v): void

Parameters

ParameterType
vTabPane

Returns

TabPane

Source

src/widgets.ts:632


get header(): HTMLDivElement

Header shown on top of the control

Returns

HTMLDivElement

Source

src/widgets.ts:606


onBeforeTabChanged

get onBeforeTabChanged(): Observable<any>

Occurs before the active pane is changed

Returns

Observable<any>

Source

src/widgets.ts:636


onTabAdded

get onTabAdded(): Observable<any>

Occurs after a pane is added

Returns

Observable<any>

Source

src/widgets.ts:642


onTabChanged

get onTabChanged(): Observable<any>

Occurs after the active pane is changed

Returns

Observable<any>

Source

src/widgets.ts:639


onTabRemoved

get onTabRemoved(): Observable<any>

Occurs after a pane is removed

Returns

Observable<any>

Source

src/widgets.ts:645


panes

get panes(): TabPane[]

Panes currently present in the pane control. Do not change the array, use addPane instead

Returns

TabPane[]

Source

src/widgets.ts:612


parent

get parent(): null | Widget<any>

Parent widget up the DOM tree, or null.

Returns

null | Widget<any>

Source

src/widgets.ts:286


root

get root(): HTMLDivElement

Visual root

Returns

HTMLDivElement

Source

src/widgets.ts:601


type

get type(): string

Returns

string

Source

src/widgets.ts:477

Methods

addPane()

addPane(name, getContent, icon, options?): TabPane

Adds a new pane with the specified name

Parameters

ParameterTypeDefault value
namestringundefined
getContent() => HTMLElementundefined
iconanynull
options?objectundefined
options.allowClose?booleanundefined

Returns

TabPane

Source

src/widgets.ts:622


addProperty()

private addProperty(propertyName, propertyType, defaultValue, options): any

Registers an property with the specified type, name, and defaultValue.

Parameters

ParameterTypeDefault valueDescription
propertyNamestringundefined
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
defaultValueanynull
optionsnull | object & IPropertynull

Returns

any

Inherited from

DartWidget . addProperty

See

Registered property gets added to properties. Returns default value, thus allowing to combine registering a property with the initialization

Source

src/widgets.ts:314


apply()

apply(properties): Widget<any>

Parameters

ParameterTypeDescription
propertiesobject

Returns

Widget<any>

Inherited from

DartWidget . apply

Source

src/widgets.ts:253


clear()

clear(): void

Removes all panes

Returns

void

Source

src/widgets.ts:627


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

DartWidget . detach

Source

src/widgets.ts:298


getDartProperties()

getDartProperties(): any[]

Returns

any[]

Inherited from

DartWidget . getDartProperties

Source

src/widgets.ts:274


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

DartWidget . getFunctions

Source

src/widgets.ts:480


getPane()

getPane(name): TabPane

Gets the pane with the specified name

Parameters

ParameterType
namestring

Returns

TabPane

Source

src/widgets.ts:617


getProperties()

getProperties(): Property[]

Returns all properties of this widget.

Returns

Property[]

Inherited from

DartWidget . getProperties

Source

src/widgets.ts:479


onFrameAttached()

onFrameAttached(dataFrame): void

Parameters

ParameterType
dataFrameDataFrame

Returns

void

Inherited from

DartWidget . onFrameAttached

Source

src/widgets.ts:280


onPropertyChanged()

onPropertyChanged(property): void

Gets called when viewer's property is changed.

Parameters

ParameterTypeDescription
propertynull | Propertyor null, if multiple properties were changed.

Returns

void

Inherited from

DartWidget . onPropertyChanged

Source

src/widgets.ts:272


sourceRowsChanged()

sourceRowsChanged(): void

Returns

void

Inherited from

DartWidget . sourceRowsChanged

Source

src/widgets.ts:278


sub()

sub(subscription): void

Registers a subscription to an external event.

Parameters

ParameterTypeDescription
subscriptionSubscription

Returns

void

Inherited from

DartWidget . sub

Source

src/widgets.ts:246


toDart()

toDart(): any

Returns

any

Inherited from

DartWidget . toDart

Source

src/widgets.ts:238


create()

static create(vertical): TabControl

Creates a new TabControl

Parameters

ParameterTypeDefault value
verticalbooleanfalse

Returns

TabControl

Source

src/widgets.ts:596


find()

static find(root): null | Widget<any>

Finds existing widget from its visual root.

Parameters

ParameterType
rootElement

Returns

null | Widget<any>

Inherited from

DartWidget . find

Source

src/widgets.ts:234


fromRoot()

static fromRoot(root): Widget<any>

Creates a new widget from the root element.

Parameters

ParameterType
rootHTMLElement

Returns

Widget<any>

Inherited from

DartWidget . fromRoot

Source

src/widgets.ts:337


getAll()

static getAll(): Widget<any>[]

Returns all currently active widgets.

Returns

Widget<any>[]

Inherited from

DartWidget . getAll

Source

src/widgets.ts:229