Table Spinner
Spinner: a component that show arrows to select value in a pre-defined list.
Summary
Field | Type | Summary |
---|---|---|
Value | string | Value of the spinner |
Return type | Function and summary |
---|---|
NextValue(Dialog dialog, Spinner spinner) Select the next value. | |
OnChange(Dialog dialog, Spinner spinner, string oldValue, string newValue) Function fired when value is modified. | |
PreviousValue(Dialog dialog, Spinner spinner) Select the previous value. | |
bool | Search(Dialog dialog, Spinner spinner, string startsWith) Search and select next value which label starts with startsWith If the end of the list is reached, the search restarts to the top of the list. |
Field
string Spinner.Value
Value of the spinner
Functions
Spinner.OnChange(Dialog dialog, Spinner spinner, string oldValue, string newValue)
Function fired when value is modified.
Spinner.PreviousValue(Dialog dialog, Spinner spinner)
Select the previous value.
This will be really visible on next OnIdle event.
Spinner.NextValue(Dialog dialog, Spinner spinner)
Select the next value.
This will be really visible on next OnIdle event.
Spinner.Search(Dialog dialog, Spinner spinner, string startsWith)
Search and select next value which label starts with startsWith If the end of the list is reached, the search restarts to the top of the list.
This will be really visible on next OnIdle event.
Parameter | Type | Default | Description |
---|---|---|---|
dialog | Dialog | The MyrScript Dialog object | |
spinner | Spinner | ||
startsWith | string |
- Return
- bool: true if the search gave different result, false if the only one is already selected, that means no change.