{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:
| |
| 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'. |
Discussions