Skip to main content

Class: Wizard

dg.Wizard

EXPERIMENTAL - USE AT YOUR OWN RISK - API might change

Hierarchy

Constructors

constructor

new Wizard(options?)

Parameters

NameType
options?Object
options.helpUrl?string
options.title?string

Overrides

Dialog.constructor

Defined in

src/ui/wizard.ts:36

Properties

_currentPage

_currentPage: WizardPage

Defined in

src/ui/wizard.ts:31


_properties

Protected _properties: Property[]

Inherited from

Dialog._properties

Defined in

src/widgets.ts:178


_root

Protected _root: HTMLElement

Inherited from

Dialog._root

Defined in

src/widgets.ts:177


captionHost

captionHost: HTMLDivElement

Defined in

src/ui/wizard.ts:27


contentHost

contentHost: HTMLDivElement

Defined in

src/ui/wizard.ts:28


dart

dart: any

Inherited from

Dialog.dart

Defined in

src/widgets.ts:181


factory

factory: null | Func = null

Constructor function. No parameters, returns [Widget].

Inherited from

Dialog.factory

Defined in

src/widgets.ts:175


isDetached

isDetached: boolean = false

Inherited from

Dialog.isDetached

Defined in

src/widgets.ts:182


nextButton

nextButton: Dialog

Defined in

src/ui/wizard.ts:34


okButton

okButton: HTMLButtonElement

Defined in

src/ui/wizard.ts:32


pages

pages: WizardPage[] = []

Defined in

src/ui/wizard.ts:30


prevButton

prevButton: Dialog

Defined in

src/ui/wizard.ts:33


props

props: any

Inherited from

Dialog.props

Defined in

src/widgets.ts:179


subs

subs: Subscription[]

Inherited from

Dialog.subs

Defined in

src/widgets.ts:180


temp

temp: any

Contains auxiliary information

Inherited from

Dialog.temp

Defined in

src/widgets.ts:172


wizardRoot

wizardRoot: HTMLDivElement

Defined in

src/ui/wizard.ts:29

Accessors

completable

get completable(): boolean

Returns

boolean

Defined in

src/ui/wizard.ts:51


currentPage

get currentPage(): WizardPage

Returns

WizardPage

Defined in

src/ui/wizard.ts:56

set currentPage(w): void

Parameters

NameType
wWizardPage

Returns

void

Defined in

src/ui/wizard.ts:57


helpUrl

get helpUrl(): string

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

Returns

string

Inherited from

Dialog.helpUrl

Defined in

src/widgets.ts:680

set helpUrl(url): void

Parameters

NameType
urlstring

Returns

void

Inherited from

Dialog.helpUrl

Defined in

src/widgets.ts:681


inputs

get inputs(): InputBase<any>[]

Returns a list of the dialog's inputs.

Returns

InputBase<any>[]

Inherited from

Dialog.inputs

Defined in

src/widgets.ts:688


onClose

get onClose(): Observable<any>

Returns

Observable<any>

Inherited from

Dialog.onClose

Defined in

src/widgets.ts:717


pageIndex

get pageIndex(): number

Returns

number

Defined in

src/ui/wizard.ts:49


root

get root(): HTMLElement

Widget's visual root.

Returns

HTMLElement

Inherited from

Dialog.root

Defined in

src/widgets.ts:437


title

get title(): string

Returns the title of a dialog.

Returns

string

Inherited from

Dialog.title

Defined in

src/widgets.ts:684

set title(t): void

Parameters

NameType
tstring

Returns

void

Inherited from

Dialog.title

Defined in

src/widgets.ts:685


type

get type(): string

Returns

string

Inherited from

Dialog.type

Defined in

src/widgets.ts:433

Methods

_updateButtonStates

_updateButtonStates(): void

Returns

void

Defined in

src/ui/wizard.ts:68


add

add(content): Dialog

Adds content to the dialog.

Parameters

NameType
contentHTMLElement | Widget<any> | InputBase<any>

Returns

Dialog

Inherited from

Dialog.add

Defined in

src/widgets.ts:743


addButton

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

Adds command button with the specified text.

Parameters

NameTypeDefault value
textstringundefined
actionFunctionundefined
indexnumber0
tooltipanynull

Returns

Dialog

Inherited from

Dialog.addButton

Defined in

src/widgets.ts:768


addContextAction

addContextAction(text, action): Dialog

Adds context action with the specified text.

Parameters

NameType
textstring
actionFunction

Returns

Dialog

Inherited from

Dialog.addContextAction

Defined in

src/widgets.ts:778


addProperty

Private addProperty(propertyName, propertyType, defaultValue?, options?): any

Registers an property with the specified type, name, and defaultValue. Registered property gets added to {@see properties}. Returns default value, thus allowing to combine registering a property with the initialization

Parameters

NameTypeDefault value
propertyNamestringundefined
propertyType"string" | "bigint" | "object" | "map" | "file" | "view" | "element" | "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" | "TableView" | "User" | "Menu" | "Project" | "event_data" | "progressindicator" | "Credentials" | "ScriptEnvironment" | "Notebook"undefined
defaultValueanynull
optionsnull | { [key: string]: any; } & PropertyOptionsnull

Returns

any

Inherited from

Dialog.addProperty

Defined in

src/widgets.ts:280


apply

apply(properties): Widget<any>

Parameters

NameType
propertiesobject

Returns

Widget<any>

Inherited from

Dialog.apply

Defined in

src/widgets.ts:230


clear

clear(): void

Clears the content.

Returns

void

Inherited from

Dialog.clear

Defined in

src/widgets.ts:798


close

close(): void

Closes the dialog.

Returns

void

Inherited from

Dialog.close

Defined in

src/widgets.ts:749


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

Defined in

src/widgets.ts:264


getButton

getButton(text): HTMLButtonElement

Returns command button with the specified text.

Parameters

NameType
textstring

Returns

HTMLButtonElement

Inherited from

Dialog.getButton

Defined in

src/widgets.ts:757


getDartProperties

getDartProperties(): any[]

Returns

any[]

Inherited from

Dialog.getDartProperties

Defined in

src/widgets.ts:246


getProperties

getProperties(): Property[]

Returns

Property[]

Inherited from

Dialog.getProperties

Defined in

src/widgets.ts:441


history

history(getInput, applyInput): void

Initializes the 'history' feature.

Parameters

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

Returns

void

Inherited from

Dialog.history

Defined in

src/widgets.ts:787


initDefaultHistory

initDefaultHistory(): Dialog

Initializes default history.

Returns

Dialog

Inherited from

Dialog.initDefaultHistory

Defined in

src/widgets.ts:792


input

input(caption): InputBase<any>

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

Parameters

NameType
captionstring

Returns

InputBase<any>

Inherited from

Dialog.input

Defined in

src/widgets.ts:691


next

next(): void

Activates the previous page

Returns

void

Defined in

src/ui/wizard.ts:81


onCancel

onCancel(handler): Dialog

Sets the CANCEL button handler

Parameters

NameType
handlerFunction

Returns

Dialog

Inherited from

Dialog.onCancel

Defined in

src/widgets.ts:711


onFrameAttached

onFrameAttached(dataFrame): void

Parameters

NameType
dataFrameDataFrame

Returns

void

Inherited from

Dialog.onFrameAttached

Defined in

src/widgets.ts:252


onOK

onOK(handler): Dialog

Sets the OK button handler, and shows the OK button

Parameters

NameType
handlerFunction

Returns

Dialog

Inherited from

Dialog.onOK

Defined in

src/widgets.ts:702


onPropertyChanged

onPropertyChanged(property): void

Gets called when viewer's property is changed.

Parameters

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

Returns

void

Inherited from

Dialog.onPropertyChanged

Defined in

src/widgets.ts:244


page

page(p): Wizard

Parameters

NameType
pWizardPage

Returns

Wizard

Defined in

src/ui/wizard.ts:41


prev

prev(): void

Activates the previous page

Returns

void

Defined in

src/ui/wizard.ts:75


show

show(options?): Dialog

Parameters

NameType
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

Defined in

src/widgets.ts:728


showModal

showModal(fullScreen): Dialog

Parameters

NameType
fullScreenboolean

Returns

Dialog

Inherited from

Dialog.showModal

Defined in

src/widgets.ts:735


sourceRowsChanged

sourceRowsChanged(): void

Returns

void

Inherited from

Dialog.sourceRowsChanged

Defined in

src/widgets.ts:250


sub

sub(subscription): void

Registers a subscription to an external event.

Parameters

NameType
subscriptionSubscription

Returns

void

Inherited from

Dialog.sub

Defined in

src/widgets.ts:223


toDart

toDart(): any

Returns

any

Inherited from

Dialog.toDart

Defined in

src/widgets.ts:215


create

Static create(options?): Dialog

Creates a new dialog with the specified options.

Parameters

NameType
options?string | { helpUrl?: string ; showFooter?: boolean ; showHeader?: boolean ; title?: string }

Returns

Dialog

Inherited from

Dialog.create

Defined in

src/widgets.ts:672


find

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

Finds existing widget from its visual root.

Parameters

NameType
rootElement

Returns

null | Widget<any>

Inherited from

Dialog.find

Defined in

src/widgets.ts:211


fromRoot

Static fromRoot(root): Widget<any>

Creates a new widget from the root element.

Parameters

NameType
rootHTMLElement

Returns

Widget<any>

Inherited from

Dialog.fromRoot

Defined in

src/widgets.ts:303


getAll

Static getAll(): Widget<any>[]

Returns all currently active widgets.

Returns

Widget<any>[]

Inherited from

Dialog.getAll

Defined in

src/widgets.ts:206


getOpenDialogs

Static getOpenDialogs(): Dialog[]

Returns currently open dialogs.

Returns

Dialog[]

Inherited from

Dialog.getOpenDialogs

Defined in

src/widgets.ts:803