checkbox¶
| プロパティ | 内容 | 必須 | 国際化 | 備考 |
|---|---|---|---|---|
| type | widgetsの種別 | 必須 | checkbox | |
| key | Schemaの項目キー | 必須 | ||
| dispCondition | 表示条件 | key1=value1,key2=value2.. | ||
| title | 項目名 | 必須 | 対象 | |
| master | 選択項目マスタ名 | 必須 | ||
| direction | 表示項目の並び | row / column | ||
| notitle | 項目名非表示設定 | true or none | ||
| labelWidth | 項目名表示幅 | |||
| postLabel | 後ラベル | 対象 | ||
| color | 選択項目の色 | primary / accent etc | ||
| flex | flex定義 | wrapper,section内のみ有効 |
注釈
表示条件(dispCondition)を設定すると、条件を満たす場合のみ表示されます。
設定の詳細は、表示条件 を参照してください。
checkboxのレイアウトサンプル:
[
{
"type": "section",
"title": "hobby",
"items": [
{
"type": "checkbox",
"notitle": true,
"title": "reading",
"key": "reading",
"flex": "1 1 auto"
},
{
"type": "checkbox",
"notitle": true,
"title": "sports",
"key": "sports",
"flex": "1 1 auto"
},
{
"type": "checkbox",
"notitle": true,
"title": "other",
"key": "other",
"flex": "1 1 auto"
}
]
}
]