section¶
sectionは、widgetをグルーピングします。
sectionの主な機能¶
- widgetの並び(縦、横)の設定
- 表示条件の設定
プロパティ | 内容 | 必須 | 国際化 | 備考 |
---|---|---|---|---|
type | widgetsの種別 | 必須 | section | |
direction | widgetの並び | row / column | ||
dispCondition | 表示条件 | key1=value1,key2=value2… | ||
title | セクション名 | 対象 | ||
titleNote | セクションの注釈 | 対象 | ||
note | 注釈 | 対象 | ||
previousLabel | 前ラベル | 対象 | ||
postLabel | 後ラベル | 対象 | ||
items | widgetの配列 |
注釈
表示条件(dispCondition)を設定すると、条件を満たす場合のみ表示されます。
設定の詳細は、表示条件 を参照してください。
sectionのレイアウトサンプル:
{
"type": "section",
"title": "section example",
"dispCondition": "dispFlag=true",
"direction": "row",
"items": [
{
"type": "checkbox",
"notitle": "none",
"key": "sectionWidget1",
"title": "sectionWidget1",
"flex": "1 1 20%"
},
{
"type": "checkbox",
"notitle": "none",
"key": "sectionWidget2",
"title": "sectionWidget2",
"flex": "1 1 20%"
}
]
}