A field for the user to make a selection from a scrollable list of predefined options.
- Select the Picker component from the Components drawer. You can open the list of components by clicking the
+button next to Components.
- To display pre-defined values, add an array as a variable from the Variables modal in the top panel.
- Then, add the Picker component from the Components tree.
- Go to the Data tab (third tab) in the Properties Panel.
- For the Options property, select the variable key (in the example below,
datais the key that contains an array of strings).
- Add an empty string
""in the Initial Value property.
To alter the name of the component. The name is reflected in the Components tree. Defaults to Picker.
Sets the name of the field in the
Placeholder text to display in the picker when the user has not made a selection.
Placeholder Text Color
Allows you to set the color of the placeholder text.
Helper text to be displayed underneath the picker, useful for providing additional instructions.
When enabled, the picker will be grayed out and the user will not be able to make a selection.
Left Icon Name
The name of the icon selected from the icon picker to be displayed on the left.
Left Icon Mode
Allows you to select the placement of the left icon, if one is selected. Inset displays the icon inside the border of the picker and outset displays the icon outside of the picker border.
Right Icon Name
The name of the icon selected from the icon picker to be displayed inset on the right.
Appearance of the picker modal.
Available values: sold or underlined.
"0-0": "Initial Value",
"0-1": "Initialize the stateful component with a value from a data source.",
"1-1": "The label of the picker which is displayed directly above the selected date.",
"2-1": "When enabled, an outline matching the theme's defined Error color will appear around the picker.\n\nMust be a boolean value: true or false.",
"3-1": "Here you are able to add the list options you want to be displayed in the picker with each option separated by a comma.\n\nThe source of data can be static or remote (coming from a data source).\n\nFor example, you can pass the options as
label is the key for each value displayed in the Picker component."
Updated 25 days ago