Skip to content

Commit 36326b4

Browse files
committed
Added a description to the top of the constraintsExample.json form #177
1 parent 4c6f94d commit 36326b4

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

grails-app/conf/example_models/constraintsExample.json

+12-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
"constraints": {
4242
"type": "computed",
4343
"includePath": "list.nestedList.value2",
44-
"default": ["Default value"]
44+
"default": [
45+
"Default value"
46+
]
4547
}
4648
}
4749
]
@@ -50,6 +52,15 @@
5052
}
5153
],
5254
"viewModel": [
55+
{
56+
"type": "row",
57+
"items": [
58+
{
59+
"type": "literal",
60+
"source": "<p>This example illustrates the use of computed constraints</p><p>The 'Value 2' field will only allow each item in the dropdown to be selected once, no matter how many times 'Value 2' appears on the page.</p><p>For each selection made in a 'Value 2' field, that value will be added as a selectable option in the 'Value 3' field.</p>"
61+
}
62+
]
63+
},
5364
{
5465
"type": "row",
5566
"items": [

0 commit comments

Comments
 (0)