date¶
dateの主な機能¶
- 大小入替 (2つのdateを比較して大小を自動で入れ替える)
プロパティ | 内容 | 必須 | 国際化 | 備考 |
---|---|---|---|---|
type | widgetsの種別 | 必須 | date | |
key | Schemaの項目キー | 必須 | ||
title | 項目名 | 必須 | 対象 | |
previousLabel | 前ラベル | 対象 | ||
postLabel | 後ラベル | 対象 | ||
minTarget | 比較対象のキー | 対象より大の場合入替 | ||
maxTarget | 比較対象のキー | 対象より小の場合入替 | ||
flex | flex定義 | wrapper,section内のみ有効 |
dateのレイアウトサンプル:
[
{
"type": "date",
"title": "dateFrom",
"key": "dateFrom",
"previousLabel": "previousLabel",
"afterLabel": "afterLabel",
"maxTarget": "dateTo"
},
{
"type": "date",
"title": "dateTo",
"key": "dateTo",
"previousLabel": "previousLabel",
"afterLabel": "afterLabel",
"minTarget": "dateFrom"
}
]