Angular EasyUI 時(shí)間微調(diào)框

2020-06-24 17:28 更新

時(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>
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)