{number-data}
Plugin: Scaffolding Plugin
Allows editing of numbers in either a text box or a drop-down box.
Usage
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'. |
Recipes
See Also
when switching from decimal=false to decimal=true with existing data, the field is not rendered in the "Edit" view. how should i proceed to allow entering of decimal data in a field that was integer only so far? without losing any data, of course
Hmm. Looks like a bug. I've raised a bug report - we'll try to sort it out for the next release.
Hi
I reported this anomaly in the table-data page but I figure it might be good to record it here
Another problem with table-data:
Hope you can help on this one
Cheers,
Mel
Hi Mel,
Could you please log a bug report with details of what browser, Confluence version, etc you are using, as well as sample wiki markup? Error reports listed as comments tend to get missed when we do an update, since it's all based on what's in JIRA.
Thanks
David
Hi David
I logged the issu under SCAFF-144
Thanks
Mel