Skip to content

Commit 9a3e329

Browse files
committed
added some jelly documentation for step for numbers
1 parent 1e05e67 commit 9a3e329

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

core/src/main/resources/lib/form/number.jelly

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ THE SOFTWARE.
4848
</st:attribute>
4949
<st:attribute name="min"> <![CDATA[
5050
The minimum of the @value. This becomes the @min of the <input> tag.
51-
This will work only @clazz is 'number', 'number-required', 'non-negative-number-required',
51+
This will work only if @clazz is 'number', 'number-required', 'non-negative-number-required',
5252
'positive-number', 'positive-number-required'.
5353
If specified, the @value should be greater than this value, or errors will be rendered under the text field.
5454
If this value contains non-digit characters, it will not work.
@@ -57,13 +57,19 @@ THE SOFTWARE.
5757
</st:attribute>
5858
<st:attribute name="max"> <![CDATA[
5959
The maximum of the @value. This becomes the @max of the <input> tag.
60-
This will work only @clazz is 'number', 'number-required', 'non-negative-number-required',
60+
This will work only if @clazz is 'number', 'number-required', 'non-negative-number-required',
6161
'positive-number', 'positive-number-required'.
6262
If specified, the @value should be less than this value, or errors will be rendered under the text field.
6363
If this value contains non-digit characters, it will not work.
6464
If @min is specified and @min is greater than this value, both @min and @max will not work.
6565
]]>
6666
</st:attribute>
67+
<st:attribute name="step">
68+
The step size of the @value. The default is 1.
69+
This will work only if @clazz is 'number', 'number-required', 'non-negative-number-required',
70+
'positive-number', 'positive-number-required'.
71+
If this value contains non-digit characters, it will not work.
72+
</st:attribute>
6773
<!-- Tomcat doesn't like us using the attribute called 'class' -->
6874
<st:attribute name="clazz">
6975
Additional CSS class(es) to add (such as client-side validation clazz="required",

0 commit comments

Comments
 (0)