User methods¶
(Click here to see demo that resets MenuOptions options & resets a MenuOptions input field )
set_select_value [ deprecated ]¶
(Use this method instead )
allows the select list field to be set programmatically. Pass in an object with either ‘ky’ or ‘val’ as the key and the actual value.
Usage:
$(<selector>).menuoptions('set_select_value', { 'ky'|'val': <value>});
These examples show using both forms of set_select_value
$('input#delivery').menuoptions('set_select_value', {'val': 'Delivered'});
$('input#crust').menuoptions('set_select_value', {'ky': '3'}); // Thick
Note: to clear out a Rocker control (reset), set the ‘val’ to ‘’ (empty string).
$('input#delivery').menuoptions('set_select_value', {'val': ''});
refreshData [ deprecated ]¶
refreshData allows all parameters to be dynamically reset
Usage:
$(<selector>).menuoptions('refreshData', { 'option': 'option value', ...});
Using refreshData is no longer required to reset MenuOptions parameters.