Skip to content

Commit 14ae549

Browse files
committed
group in titleMap docs
1 parent dd858e7 commit 14ae549

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,22 @@ As an object:
718718
}
719719
```
720720
721+
The *select* can also take an optional `group` property in its `titleMap` that adds `<optgroup>`
722+
element to the select.
723+
724+
```javascript
725+
{
726+
type: "select",
727+
titleMap: [
728+
{ value: "yes", name: "Yes I do", group: "Boolean" },
729+
{ value: "no", name: "Hell no" , group: "Boolean" },
730+
{ value: "no", name: "File Not Found", group: "Other" },
731+
]
732+
}
733+
```
734+
735+
736+
721737
### actions
722738
723739
*actions* behaves the same as fieldset, but can only handle buttons as chidren.

0 commit comments

Comments
 (0)