Skip to main content

Wizard

EXPERIMENTAL - USE AT YOUR OWN RISK - API might change

Extends

Constructors

new Wizard()

new Wizard(options?): Wizard

Parameters

ParameterType
options?object
options.helpUrl?string
options.title?string

Returns

Wizard

Overrides

Dialog . constructor

Source

src/ui/wizard.ts:36

Properties

PropertyModifierTypeDefault valueDescriptionInherited from
_currentPagepublicWizardPage...--
_propertiesprotectedProperty[]undefined-Dialog._properties
_rootprotectedHTMLElementundefined-Dialog._root
captionHostpublicHTMLDivElement...--
contentHostpublicHTMLDivElement...--
dartpublicanyundefined-Dialog.dart
factorypublicnull | FuncnullConstructor function. No parameters, returns [Widget].Dialog.factory
isDetachedpublicbooleanfalse-Dialog.isDetached
nextButtonpublicDialog...--
okButtonpublicHTMLButtonElement...--
pagespublicWizardPage[][]--
prevButtonpublicDialog...--
propspublicanyundefined-Dialog.props
subspublicSubscription[]undefined-Dialog.subs
temppublicanyundefinedContains auxiliary informationDialog.temp
wizardRootpublicHTMLDivElement...--

Accessors

completable

get completable(): boolean

Returns

boolean

Source

src/ui/wizard.ts:51


currentPage

get currentPage(): WizardPage

set currentPage(w): void

Parameters

ParameterType
wWizardPage

Returns

WizardPage

Source

src/ui/wizard.ts:56


helpUrl

get helpUrl(): string

When provided, adds a "?" icon to the dialog header on the right.

set helpUrl(url): void

Parameters

ParameterType
urlstring

Returns

string

Source

src/widgets.ts:710


inputs

get inputs(): InputBase<any>[]

Returns a list of the dialog's inputs.

Returns

InputBase<any>[]

Source

src/widgets.ts:718


onClose

get onClose(): Observable<any>

Returns

Observable<any>

Source

src/widgets.ts:763


pageIndex

get pageIndex(): number

Returns

number

Source

src/ui/wizard.ts:49


root

get root(): HTMLElement

Widget's visual root.

Returns

HTMLElement

Source

src/widgets.ts:467


title

get title(): string

Returns the title of a dialog.

set title(t): void

Parameters

ParameterType
tstring

Returns

string

Source

src/widgets.ts:714


type

get type(): string

Returns

string

Source

src/widgets.ts:463

Methods

_updateButtonStates()

_updateButtonStates(): void

Returns

void

Source

src/ui/wizard.ts:68


add()

add(content): Dialog

Adds content to the dialog.

Parameters

ParameterTypeDescription
contentHTMLElement | Widget<any> | InputBase<any>

Returns

Dialog

Inherited from

Dialog . add

Source

src/widgets.ts:789


addButton()

addButton(text, action, index, tooltip): Dialog

Adds command button with the specified text.

Parameters

ParameterTypeDefault valueDescription
textstringundefined
actionFunctionundefined
indexnumber0
tooltipanynull

Returns

Dialog

Inherited from

Dialog . addButton

Source

src/widgets.ts:814


addContextAction()

addContextAction(text, action): Dialog

Adds context action with the specified text.

Parameters

ParameterTypeDescription
textstring
actionFunction

Returns

Dialog

Inherited from

Dialog . addContextAction

Source

src/widgets.ts:824


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" | "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 & PropertyOptionsnull

Returns

any

Inherited from

Dialog . 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:312


apply()

apply(properties): Widget<any>

Parameters

ParameterTypeDescription
propertiesobject

Returns

Widget<any>

Inherited from

Dialog . apply

Source

src/widgets.ts:262


awaitOnOK()

awaitOnOK<T>(handler): Promise<T>

Sets the OK button handler and returns a promise of the handler callback.

Type parameters

Type parameterValue
Tany

Parameters

ParameterTypeDescription
handler() => Promise<T>

Returns

Promise<T>

Inherited from

Dialog . awaitOnOK

Source

src/widgets.ts:741


clear()

clear(): void

Clears the content.

Returns

void

Inherited from

Dialog . clear

Source

src/widgets.ts:844


close()

close(): void

Closes the dialog.

Returns

void

Inherited from

Dialog . close

Source

src/widgets.ts:795


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

Dialog . detach

Source

src/widgets.ts:296


getButton()

getButton(text): HTMLButtonElement

Returns command button with the specified text.

Parameters

ParameterTypeDescription
textstring

Returns

HTMLButtonElement

Inherited from

Dialog . getButton

Source

src/widgets.ts:803


getDartProperties()

getDartProperties(): any[]

Returns

any[]

Inherited from

Dialog . getDartProperties

Source

src/widgets.ts:278


getProperties()

getProperties(): Property[]

Returns

Property[]

Inherited from

Dialog . getProperties

Source

src/widgets.ts:471


history()

history(getInput, applyInput): void

Initializes the 'history' feature.

Parameters

ParameterTypeDescription
getInput() => anycollects the input from UI into JSON-serializable object
applyInput(x) => voidrefreshes the UI according to input

Returns

void

Inherited from

Dialog . history

Source

src/widgets.ts:833


initDefaultHistory()

initDefaultHistory(): Dialog

Initializes default history.

Returns

Dialog

Inherited from

Dialog . initDefaultHistory

Source

src/widgets.ts:838


input()

input(caption): InputBase<any>

Returns an input with the specified caption, or throws an exception.

Parameters

ParameterType
captionstring

Returns

InputBase<any>

Inherited from

Dialog . input

Source

src/widgets.ts:721


next()

next(): void

Activates the previous page

Returns

void

Source

src/ui/wizard.ts:81


onCancel()

onCancel(handler): Dialog

Sets the CANCEL button handler

Parameters

ParameterTypeDescription
handlerFunction

Returns

Dialog

Inherited from

Dialog . onCancel

Source

src/widgets.ts:757


onFrameAttached()

onFrameAttached(dataFrame): void

Parameters

ParameterType
dataFrameDataFrame

Returns

void

Inherited from

Dialog . onFrameAttached

Source

src/widgets.ts:284


onOK()

onOK(handler): Dialog

Sets the OK button handler, and shows the OK button

Parameters

ParameterTypeDescription
handlerFunction

Returns

Dialog

Inherited from

Dialog . onOK

Source

src/widgets.ts:732


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

Dialog . onPropertyChanged

Source

src/widgets.ts:276


page()

page(p): Wizard

Parameters

ParameterType
pWizardPage

Returns

Wizard

Source

src/ui/wizard.ts:41


prev()

prev(): void

Activates the previous page

Returns

void

Source

src/ui/wizard.ts:75


show()

show(options?): Dialog

Parameters

ParameterTypeDescription
options?object
options.backgroundColor?string-
options.center?boolean-
options.centerAt?Element-
options.fullScreen?boolean-
options.height?number-
options.modal?boolean-
options.resizable?boolean-
options.showNextTo?HTMLElement-
options.width?number-
options.x?number-
options.y?number-

Returns

Dialog

Inherited from

Dialog . show

Source

src/widgets.ts:774


showModal()

showModal(fullScreen): Dialog

Parameters

ParameterTypeDescription
fullScreenboolean

Returns

Dialog

Inherited from

Dialog . showModal

Source

src/widgets.ts:781


sourceRowsChanged()

sourceRowsChanged(): void

Returns

void

Inherited from

Dialog . sourceRowsChanged

Source

src/widgets.ts:282


sub()

sub(subscription): void

Registers a subscription to an external event.

Parameters

ParameterTypeDescription
subscriptionSubscription

Returns

void

Inherited from

Dialog . sub

Source

src/widgets.ts:255


toDart()

toDart(): any

Returns

any

Inherited from

Dialog . toDart

Source

src/widgets.ts:247


create()

static create(options?): Dialog

Creates a new dialog with the specified options.

Parameters

ParameterType
options?string | object

Returns

Dialog

Inherited from

Dialog . create

Source

src/widgets.ts:702


find()

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

Finds existing widget from its visual root.

Parameters

ParameterType
rootElement

Returns

null | Widget<any>

Inherited from

Dialog . find

Source

src/widgets.ts:243


fromRoot()

static fromRoot(root): Widget<any>

Creates a new widget from the root element.

Parameters

ParameterType
rootHTMLElement

Returns

Widget<any>

Inherited from

Dialog . fromRoot

Source

src/widgets.ts:335


getAll()

static getAll(): Widget<any>[]

Returns all currently active widgets.

Returns

Widget<any>[]

Inherited from

Dialog . getAll

Source

src/widgets.ts:238


getOpenDialogs()

static getOpenDialogs(): Dialog[]

Returns currently open dialogs.

Returns

Dialog[]

Inherited from

Dialog . getOpenDialogs

Source

src/widgets.ts:849