Methods
(inner) createScriptDialogEl(data) → {Element}
Parses the script dialog definition and creates the form elements
Parameters:
Name | Type | Description |
---|---|---|
data |
object | Definition of form element to create |
- Source:
Returns:
Created element
- Type
- Element
(inner) execScript(cmd) → {void}
Executes a script and asks for argument values
Parameters:
Name | Type | Description |
---|---|---|
cmd |
object | script and arguments object to execute |
- Source:
Returns:
- Type
- void
(inner) execScriptArgs(target) → {void}
Executes a script after asking for argument values
Parameters:
Name | Type | Description |
---|---|---|
target |
Element | triggering element |
- Source:
Returns:
- Type
- void
(inner) execScriptFromOptions(cmd, options) → {void}
Executes a script and uses a comma separated list of options as arguments
Parameters:
Name | Type | Description |
---|---|---|
cmd |
string | script to execute |
options |
string | options parsed as comma separated list of arguments |
- Source:
Returns:
- Type
- void
(inner) formToScriptArgs(container) → {object}
Returns the form elements names and values for script arguments
Parameters:
Name | Type | Description |
---|---|---|
container |
Element | Element with the form elements |
- Source:
Returns:
Object with form element names and values
- Type
- object
(inner) parseArgument(name, value, defaultValue) → {Element}
Parses the script arguments definition and creates the form elements
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Name of the element |
value |
string | Element value definition |
defaultValue |
string | Default value for the element |
- Source:
Returns:
Created element
- Type
- Element
(inner) scriptArgsToForm(container, scriptArguments, values) → {void}
Creates the form to ask for script arguments
Parameters:
Name | Type | Description |
---|---|---|
container |
Element | Element to append the form elements |
scriptArguments |
Array | Array of script arguments |
values |
object | The default values for the form elements |
- Source:
Returns:
- Type
- void
(inner) scriptDialogToForm(container, data) → {void}
Creates the form for the script dialog
Parameters:
Name | Type | Description |
---|---|---|
container |
Element | Element to append the form elements |
data |
object | Definition of form elements |
- Source:
Returns:
- Type
- void
(inner) showScriptDialog(params) → {void}
Shows the script dialog and asks for input
Parameters:
Name | Type | Description |
---|---|---|
params |
object | Jsonrpc params from script_dialog method |
- Source:
Returns:
- Type
- void