Wizard
EXPERIMENTAL - USE AT YOUR OWN RISK - API might change
Extends
Constructors
new Wizard()
new Wizard(
options?):Wizard
Parameters
| Parameter | Type |
|---|---|
options? | object |
options.helpUrl? | string |
options.title? | string |
Returns
Overrides
Source
Properties
| Property | Modifier | Type | Default value | Description | Inherited from |
|---|---|---|---|---|---|
_currentPage | public | WizardPage | ... | - | - |
_functions | protected | Func[] | [] | - | Dialog._functions |
_properties | protected | Property[] | [] | - | Dialog._properties |
_root | protected | HTMLElement | undefined | - | Dialog._root |
captionHost | public | HTMLDivElement | ... | - | - |
contentHost | public | HTMLDivElement | ... | - | - |
dart | public | any | undefined | - | Dialog.dart |
factory | public | null | Func | null | Constructor function. No parameters, returns [Widget]. | Dialog.factory |
isDetached | public | boolean | false | - | Dialog.isDetached |
nextButton | public | Dialog<object> | ... | - | - |
okButton | public | HTMLButtonElement | ... | - | - |
pages | public | WizardPage[] | [] | - | - |
prevButton | public | Dialog<object> | ... | - | - |
props | public | any | undefined | - | Dialog.props |
subs | public | Subscription[] | undefined | - | Dialog.subs |
temp | public | any | undefined | Contains auxiliary information | Dialog.temp |
wizardRoot | public | HTMLDivElement | ... | - | - |
Accessors
children
getchildren():Widget<any>[]
Parent widget up the DOM tree, or null.
Returns
Widget<any>[]
Source
completable
getcompletable():boolean
Returns
boolean
Source
currentPage
getcurrentPage():WizardPage
setcurrentPage(w):void
Parameters
| Parameter | Type |
|---|---|
w | WizardPage |
Returns
Source
helpUrl
gethelpUrl():string
When provided, adds a "?" icon to the dialog header on the right.
sethelpUrl(url):void
Parameters
| Parameter | Type |
|---|---|
url | string |
Returns
string
Source
inputs
getinputs():InputBase<any>[]
Returns a list of the dialog's inputs.
Returns
InputBase<any>[]
Source
namedInputs
getnamedInputs():Inputs
gets typed inputs with captions as keys.
Returns
Inputs
Source
onClose
getonClose():Observable<any>
Returns
Observable<any>
Source
pageIndex
getpageIndex():number
Returns
number
Source
parent
getparent():null|Widget<any>
Parent widget up the DOM tree, or null.
Returns
null | Widget<any>
Source
root
getroot():HTMLElement
Widget's visual root.
Returns
HTMLElement
Source
title
gettitle():string
Returns the title of a dialog.
settitle(t):void
Parameters
| Parameter | Type |
|---|---|
t | string |
Returns
string
Source
type
gettype():string
Returns
string
Source
Methods
_updateButtonStates()
_updateButtonStates():
void
Returns
void
Source
add()
add(
content):Dialog<object>
Adds content to the dialog. using addInput() for inputs is preferred, as it provides better type safety.
Parameters
| Parameter | Type | Description |
|---|---|---|
content | HTMLElement | Widget<any> | InputBase<any> |
Returns
Dialog<object>
Inherited from
Source
addButton()
addButton(
text,action,index,tooltip):Dialog<object>
Adds command button with the specified text.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
text | string | undefined | |
action | Function | undefined | |
index | number | 0 | |
tooltip | any | null |
Returns
Dialog<object>
Inherited from
Source
addContextAction()
addContextAction(
text,action):Dialog<object>
Adds context action with the specified text.
Parameters
| Parameter | Type | Description |
|---|---|---|
text | string | |
action | Function |
Returns
Dialog<object>
Inherited from
Source
addInput()
addInput<
K,V>(caption,input):Dialog<Record<K,V>>
Adds named input, which than can be used in combo with namedInputs, to get inputs in type-safe way
Type parameters
| Type parameter |
|---|
K extends string |
V extends InputBase<any> |
Parameters
| Parameter | Type |
|---|---|
caption | K |
input | V |
Returns
Dialog<Record<K, V>>
Inherited from
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
awaitOnOK()
awaitOnOK<
T>(handler):Promise<T>
Sets the OK button handler and returns a promise of the handler callback.
Type parameters
| Type parameter | Value |
|---|---|
T | any |
Parameters
| Parameter | Type | Description |
|---|---|---|
handler | () => Promise<T> |
Returns
Promise<T>