時(shí)間微調(diào)框( TimeSpinnerComponent )是基于微調(diào)器( SpinnerComponent )創(chuàng)建的組件。 時(shí)間微調(diào)框( TimeSpinnerComponent )允許用戶通過點(diǎn)擊組件右側(cè)的小微調(diào)按鈕來增加或者減少時(shí)間。
名稱 | 數(shù)據(jù)類型 | 作用描述 | 默認(rèn)值 |
---|---|---|---|
value | string | 字段值。 | null |
min | string | 最小允許時(shí)間。 | null |
max | string | 最大允許時(shí)間。 | null |
increment | number | 單擊微調(diào)按鈕時(shí)增加值。 | 1 |
highlight | number | 初始化突出顯示的字段,0 =小時(shí),1 =分鐘 | 0 |
format | string | 時(shí)間格式。 | HH:mm |
注:
- 繼承: SpinnerBaseComponent 。
- 選擇器: eui-timespinner 。
<div style="margin-bottom:20px">
<label [for]="t1">Start Time:</label>
<eui-timespinner #t1 [(ngModel)]="time1"></eui-timespinner>
</div>
<div style="margin-bottom:20px">
<label [for]="t2">End Time:</label>
<eui-timespinner #t2 [(ngModel)]="time2"></eui-timespinner>
</div>
更多建議: