【发布时间】:2020-04-22 13:25:18
【问题描述】:
我在我的应用程序中使用了惊人的时间选择器,我无法在选择小时后自动切换到分钟
component.html
<input type="time" atp-time-picker formControlName="time" class="form-control">
是否有任何插件属性可以使用?
【问题讨论】:
标签: javascript html arrays json angular
我在我的应用程序中使用了惊人的时间选择器,我无法在选择小时后自动切换到分钟
component.html
<input type="time" atp-time-picker formControlName="time" class="form-control">
是否有任何插件属性可以使用?
【问题讨论】:
标签: javascript html arrays json angular
试试这个
changeToMinutes: true
其他 HTML
<button (click)="open()">Time</button>
TS
open() {
const amazingTimePicker = this.atp.open({
changeToMinutes: true,
});
amazingTimePicker.afterClose().subscribe(time => {
this.selectedTime = time;
});
}
来源https://github.com/owsolutions/amazing-time-picker/issues/127
【讨论】: