We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd2771 commit fb6c5c9Copy full SHA for fb6c5c9
fields/select.md
@@ -62,3 +62,20 @@ If you select the first item, the `value` will be `"Personal"` in the model.
62
63
If you select the second item, the `value` will be `"en-US"` in the model.
64
65
+### Creating an \<optgroup\> with Select field:
66
+
67
+```js
68
+{
69
+ type: "select",
70
+ label: "Choose the fastest",
71
+ model: "the-fastest",
72
+ required: true,
73
+ values: values: [
74
+ { name: "Marc Marquez", id: "93", group: "MotoGP" },
75
+ { name: "Valentino Rossi", id: "46", group: "MotoGP" },
76
+ { name: "Lewis Hamilton", id: "44", group: "Formula 1" },
77
+ { name: "Sebastian Vettel", id: "5", group: "Formula 1" }
78
+ ],
79
+ validator: validators.required
80
+}
81
+```
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments