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>
Inherited from
Source
clear()
clear():
void
Clears the content.
Returns
void
Inherited from
Source
close()
close():
void
Closes the dialog.
Returns
void
Inherited from
Source
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
Source
getButton()
getButton(
text):HTMLButtonElement
Returns command button with the specified text.
Parameters
| Parameter | Type | Description |
|---|---|---|
text | string |
Returns
HTMLButtonElement
Inherited from
Source
getDartProperties()
getDartProperties():
any[]
Returns
any[]
Inherited from
Source
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
Source
getProperties()
getProperties():
Property[]
Returns all properties of this widget.
Returns
Property[]
Inherited from
Source
history()
history(
getInput,applyInput):void
Initializes the 'history' feature.
Parameters
| Parameter | Type | Description |
|---|---|---|
getInput | () => any | collects the input from UI into JSON-serializable object |
applyInput | (x) => void | refreshes the UI according to input |
Returns
void
Inherited from
Source
initDefaultHistory()
initDefaultHistory():
Dialog<object>
Initializes default history.
Returns
Dialog<object>
Inherited from
Source
initFromLocalStorage()
initFromLocalStorage():
void
Initializes the dialog properties from local storage.
Returns
void
Inherited from
Source
input()
input(
caption):InputBase<any>
Returns an input with the specified caption, or throws an exception.
Parameters
| Parameter | Type |
|---|---|
caption | string |
Returns
InputBase<any>
Inherited from
Source
next()
next():
void
Activates the previous page
Returns
void
Source
onCancel()
onCancel(
handler):Dialog<object>
Sets the CANCEL button handler
Parameters
| Parameter | Type | Description |
|---|---|---|
handler | Function |
Returns
Dialog<object>
Inherited from
Source
onFrameAttached()
onFrameAttached(
dataFrame):void
Parameters
| Parameter | Type |
|---|---|
dataFrame | DataFrame |
Returns
void
Inherited from
Source
onOK()
onOK(
handler,options?):Dialog<object>
Sets the OK button handler, and shows the OK button
Parameters
| Parameter | Type | Description |
|---|---|---|
handler | Function | |
options? | object | |
options.closeOnEnter? | boolean | - |
Returns
Dialog<object>
Inherited from
Source
onPropertyChanged()
onPropertyChanged(
property):void
Gets called when viewer's property is changed.
Parameters
| Parameter | Type | Description |
|---|---|---|
property | null | Property | or null, if multiple properties were changed. |
Returns
void
Inherited from
Source
page()
page(
p):Wizard
Parameters
| Parameter | Type |
|---|---|
p | WizardPage |
Returns
Source
prev()
prev():
void
Activates the previous page
Returns
void
Source
show()
show(
options?):Dialog<object>
Parameters
| Parameter | Type | Description |
|---|---|---|
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<object>
Inherited from
Source
showModal()
showModal(
fullScreen):Dialog<object>
Parameters
| Parameter | Type | Description |
|---|---|---|
fullScreen | boolean |
Returns
Dialog<object>
Inherited from
Source
sourceRowsChanged()
sourceRowsChanged():
void
Returns
void
Inherited from
Source
sub()
sub(
subscription):void
Registers a subscription to an external event.
Parameters
| Parameter | Type | Description |
|---|---|---|
subscription | Subscription |
Returns
void
Inherited from
Source
toDart()
toDart():
any
Returns
any
Inherited from
Source
create()
staticcreate(options?):Dialog<object>
Creates a new dialog with the specified options.
Parameters
| Parameter | Type |
|---|---|
options? | string | object |
Returns
Dialog<object>
Inherited from
Source
find()
staticfind(root):null|Widget<any>
Finds existing widget from its visual root.
Parameters
| Parameter | Type |
|---|---|
root | Element |
Returns
null | Widget<any>
Inherited from
Source
fromRoot()
staticfromRoot(root):Widget<any>
Creates a new widget from the root element.
Parameters
| Parameter | Type |
|---|---|
root | HTMLElement |
Returns
Widget<any>
Inherited from
Source
getAll()
staticgetAll():Widget<any>[]
Returns all currently active widgets.
Returns
Widget<any>[]
Inherited from
Source
getOpenDialogs()
staticgetOpenDialogs():Dialog<object>[]
Returns currently open dialogs.
Returns
Dialog<object>[]