Skip to content

Commit 7055ef4

Browse files
committed
Update to #889
Explain x-schema-form titleMap restreiction
1 parent 69f3043 commit 7055ef4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/index.md

+7
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,8 @@ if you for some reason can't do this, but *do* have the power to change the sche
509509
default values within the schema using the custom attribute `x-schema-form`. `x-schema-form` should
510510
be a form object and acts as form definition defaults for that field.
511511
512+
Note: If adding a titleMap it MUST be in the object list format as demonstrated in the example below.
513+
512514
Example schema.
513515
```js
514516
{
@@ -520,6 +522,11 @@ Example schema.
520522
"x-schema-form": {
521523
"type": "textarea",
522524
"placeholder": "Don't hold back"
525+
"titleMap": {
526+
{ "name": "Example A", "value": "a" },
527+
{ "name": "Example B", "value": "b" },
528+
{ "name": "Example C", "value": "c" }
529+
}
523530
}
524531
}
525532
}

0 commit comments

Comments
 (0)