Skip to content

Commit c821b03

Browse files
committed
feat(JSON): new JSON category for validation-related props
1 parent ce51052 commit c821b03

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ui/src/composables/private.use-validate/use-validate.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
"type": [ "Boolean", "null" ],
1111
"default": "null",
1212
"desc": "Does field have validation errors?",
13-
"category": "behavior"
13+
"category": "validation"
1414
},
1515

1616
"error-message": {
1717
"type": "String",
1818
"desc": "Validation error message (gets displayed only if 'error' is set to 'true')",
1919
"examples": [ "'Username must have at least 5 characters'" ],
20-
"category": "content"
20+
"category": "validation"
2121
},
2222

2323
"no-error-icon": {
2424
"type": "Boolean",
2525
"desc": "Hide error icon when there is an error",
26-
"category": "content"
26+
"category": "validation"
2727
},
2828

2929
"rules": {
@@ -35,21 +35,21 @@
3535
"[ 'fulltime' ]",
3636
"[ (val, rules) => rules.email(val) || 'Please enter a valid email address' ]"
3737
],
38-
"category": "behavior"
38+
"category": "validation"
3939
},
4040

4141
"reactive-rules": {
4242
"type": "Boolean",
4343
"desc": "By default a change in the rules does not trigger a new validation until the model changes; If set to true then a change in the rules will trigger a validation; Has a performance penalty, so use it only when you really need it",
44-
"category": "behavior"
44+
"category": "validation"
4545
},
4646

4747
"lazy-rules": {
4848
"type": [ "Boolean", "String" ],
4949
"desc": "If set to boolean true then it checks validation status against the 'rules' only after field loses focus for first time; If set to 'ondemand' then it will trigger only when component's validate() method is manually called or when the wrapper QForm submits itself",
5050
"default": "false",
5151
"values": [ "true", "false", "'ondemand'" ],
52-
"category": "behavior"
52+
"category": "validation"
5353
}
5454
},
5555

0 commit comments

Comments
 (0)