我使用与PrimeNG的日历时间选择器,并有下面的代码:stepMinute不PrimeNG的日历工作
<p-calendar class="due-time" name="time-due" timeOnly="true" showTime="showTime" hourFormat="12" stepMinute="15" readonlyInput="readonlyInput"
[(ngModel)]="TimeDue" (ngModelChange)="updateTimeDue()"></p-calendar>
这一切工作正常,除了我想要的分钟递增/递减的事实15,尽管加入stepMinute="15"
,如上可见,仍分钟递增/递减1。我试图改变,为[stepMinute]="15"
,但是这给了我以下错误:
Can't bind to 'stepMinute' since it isn't a known property of 'p-calendar'. 1. If 'p-calendar' is an Angular component and it has 'stepMinute' input, then verify that it is part of this module. 2. If 'p-calendar' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message.
如果我改变,要[attr.stepMinute]="15"
,然后它摆脱了错误r,但它又回到了上下1.我怎样才能让stepMinute
实际工作?
我需要更新版本。适用于2.0.1 – Brett