This translation is older than the original page and might be outdated. See what has changed.

N-Type Numeric


NUMERIC-Type Property.

    <prop name="NUMERO" visible="1" group="1" type="N" fieldsize="4"/>



It is an inputbox to enter numeric values. The keyboard will come out only to enter numbers. If the type was different and we want to show only the numeric keyboard, we will have to specify the input-type=“numeric” attribute.


From the viewmode attribute, in the Type N props, it defines these controls:

  • viewmode= slider
  • viewmode= rounded-slider


The max attribute, defines the maximum value the control may have.

Prop viewmode=slider ATTRIBUTES
max: Maximum value performed. By default: 10.
min: Minimum value performed. By default: 0.
left-bar-color: Color of the progress bar, but the left side only. By default: O.S. subject.
right-bar-color: Color of the progress bar, but the right side only. By default: O.S. subject.
img-thumb: Image of the icon we scroll.


Prop viewmode=rounded-slider ATTRIBUTES
max: Maximum value performed. By default: 10.
min: Minimum value performed. By default: 0.
progress-bar-color: Generic color of the progress bar. By default: O.S. subject.


Examples:

   <prop name="MAP_SLIDER" type="N" max="100" viewmode="slider" tmargin="10" width="50%" height="50%"/>
   <prop name="MAP_ROUNDED_SLIDER" type="N" max="100" viewmode="rounded-slider" tmargin="10" width="50%" height="10%" newline="false"/>