number-data

{number-data}

Plugin: Scaffolding Plugin

Allows editing of numbers in either a text box or a drop-down box.

Usage

{number-data:Name}X{number-data}

Parameters

Name Required Default Description
[default]/name
The name of the field.
type
The type of field to display. May be one of the following:
  • line - (default) A single-line number field.
  • select - A single-selection drop-down list box, based on minValue, maxValue and step. Note: this type requires that there is a maximum range of 1000 between the minValue and maxValue.
decimal
false
If true, the field will allow decimal values to be entered.

Warning: Decimals are by their nature imprecise, and may occasionally result in some arithmetic errors with some numbers. Only use them if necessary, and don't expect minValue and maxValue to always be precise as boundaries.

minValue
The minimum value the number may be (inclusive).
maxValue
The maximum value the number may be (inclusive).
step
1
The amount each option should step when in 'select' mode. E.g. a step of 2 will produce options 1, 3, 5, etc. May be negative.
format
The format the number should be output in when not being edited. See java.text.DecimalFormat for details.
required
false
If true, the field cannot be empty.
width
The width of the field. E.g. '100%' or '250px'.
height
The height of the field. E.g. '100%' or '250px'.

See Also

Labels

macro macro Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.