Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions core/src/main/resources/lib/form/number.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ THE SOFTWARE.
</st:attribute>
<st:attribute name="min"> <![CDATA[
The minimum of the @value. This becomes the @min of the <input> tag.
This will work only @clazz is 'number', 'number-required', 'non-negative-number-required',
This will work only if @clazz is 'number', 'number-required', 'non-negative-number-required',
'positive-number', 'positive-number-required'.
If specified, the @value should be greater than this value, or errors will be rendered under the text field.
If this value contains non-digit characters, it will not work.
Expand All @@ -57,13 +57,19 @@ THE SOFTWARE.
</st:attribute>
<st:attribute name="max"> <![CDATA[
The maximum of the @value. This becomes the @max of the <input> tag.
This will work only @clazz is 'number', 'number-required', 'non-negative-number-required',
This will work only if @clazz is 'number', 'number-required', 'non-negative-number-required',
'positive-number', 'positive-number-required'.
If specified, the @value should be less than this value, or errors will be rendered under the text field.
If this value contains non-digit characters, it will not work.
If @min is specified and @min is greater than this value, both @min and @max will not work.
]]>
</st:attribute>
<st:attribute name="step"> <![CDATA[
The step size of the @value. The default is 1. This becomes the @step of the <input> tag.
The step should be an integer when using any of the validating @clazz values.
Otherwise the spinner of the input will change the field to non integer values.
]]>
</st:attribute>
<!-- Tomcat doesn't like us using the attribute called 'class' -->
<st:attribute name="clazz">
Additional CSS class(es) to add (such as client-side validation clazz="required",
Expand Down
Loading