Table Spinner

Spinner: a component that show arrows to select value in a pre-defined list.

See
SMDialog:addSpinner

Summary

FieldTypeSummary
ValuestringValue of the spinner
Return typeFunction 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.
boolSearch(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.

ParameterTypeDefaultDescription
dialogDialog The MyrScript Dialog object
spinnerSpinner The spinner
oldValuestring The old value of the spinner
newValuestring The new value of the spinner

Spinner.PreviousValue(Dialog dialog, Spinner spinner)

Select the previous value.

This will be really visible on next OnIdle event.

ParameterTypeDefaultDescription
dialogDialog The MyrScript Dialog object
spinnerSpinner  

Spinner.NextValue(Dialog dialog, Spinner spinner)

Select the next value.

This will be really visible on next OnIdle event.

ParameterTypeDefaultDescription
dialogDialog The MyrScript Dialog object
spinnerSpinner  

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.

ParameterTypeDefaultDescription
dialogDialog The MyrScript Dialog object
spinnerSpinner  
startsWithstring  
Return
bool: true if the search gave different result, false if the only one is already selected, that means no change.