Pick value android style
  • 18 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Pick value android style

  • Dark
    Light
  • PDF

Display a blocking, Android-style value picker dialog, allowing the user to select from a given set of label-value pairs.

Confirming the selection triggers the output.

Input arguments

Label Key Type Required? Default Description
Picker options pickerOptions Array Yes List of options to choose from. For each option, the text defined in the label property will be shown.
Initial option value initialValue Json No Initially selected option, determined by finding the option in Picker options whose value matches this input.
Picker title text title String No Pick value Title text to show at the top of the picker wheel.
Confirm button label confirmLabel String No OK Text label on the confirm button.
Cancel button label cancelLabel String No Cancel Text label on the cancel button
Button color color String(color) No rgb(200,200,200) Color for the picker buttons (confirm, cancel and radio button to select an option)

Output arguments

Number of outputs: 3

Label Key Type Description
Picked option pickedOption Object Option picked by the user, as an object with `label` and `value` properties.
  • Label
pickedOption.label String Option label.
  • Value
pickedOption.value Json Option value.

Events

No events.

Errors

Label Code Description
Unknown error unknown Thrown if an unknown error occurred while picking a value.

Was this article helpful?