Controls: NUMBER_PICKER

What you will learn in this chapter
NUMBER_PICKER control (Available in Android, iOS coming soon)
Attributes
Reference Tutorials:
Other pickers: CHECKBOX, DATETIMEPICKER, RADIOGROUP, SINGLE_CHOICE_DIALOG, SINGLE_CHOICE_PICKER
Reference: Actions, Data Sourcing, appearance

NUMBER_PICKER control

NUMBER_PICKER control allows a user to select a number between minimum and maximum number

Attributes

Attribute Description / Value Mandatory
type NUMBER_PICKER Yes
x Defines the starting x position of the control Yes
y Defines the starting x position of the control Yes
width Defines the width of the control Yes
height Defines the height of the control Yes
appearance_name Defines the appearance of the control Yes
field_name Place holder for user input Yes
data_type INT Yes
min Defines the minimum number that can be selected Yes
max Defines the maximum number that can be selected Yes
default_value   No
permission READWRITE default is READWRITE

NUMBER_PICKER Example: The code below allows the user to select a number between 1 and 100:

<control type="NUMBER_PICKER" x="35" y="23" width="40" height="8" appearance_name="edit_box" data_type="INT"
            field_name="quantity" min="1" max="100" default_value="2"/>
../_images/number_picker.png