我想知道是否可以设置TimePicker
的约束,它应该只显示/允许选择12:00-17:00之间的时间。
尝试:
对于输入,有可能设置某些限制:
<Input value="{path: 'modelExample>/example', type: 'sap.ui.model.type.String' , constraints:{ minLength:20, maxLength:70 }}" />
问题:是否可以为TimePicker设置约束?
一些类似的东西(可能需要修复,我脑子里想出来了(:
注意时间类型(使用与日期相同的约束(
<Input
value="{
path: 'modelExample>/example',
type: 'sap.ui.model.type.Time',
formatOptions: { format: 'HH:mm' }, // may need pattern aswell, not sure anymore
constraints: { minimum: '12:00', maxLength: '17:00' }}"
/>