Search...
options
Sets or gets the options in the radio button group.
Description
options
is an array of objects, each representing an option available to a user.
Type:
Array<option>Read & Write
NAME
TYPE
DESCRIPTION
label
string
The label of the radio button option. This is what a user sees.
value
string
The value of the radio button option. This is what you use in code.
Was this helpful?
Get a text input's prefix
Copy Code
1let radioOptions = $w("#myPanelRadioGroup").options;23let firstLabel = radioOptions[0].label; // "First Label"4let firstValue = radioOptions[0].value; // "first_value"
Set a text input's prefix
Copy Code
1$w("#myPanelRadioGroup").options = [2 {"label": "Who's on first!", "value": "first"},3 {"label": "What's on second", "value": "second"},4 {"label": "I Don't Know is on third", "value": "third"}5];