core/time-picker/time-picker.component.ts
ControlValueAccessor
OnDestroy
| providers |
)
|
| selector | c8y-time-picker |
| standalone | true |
| imports |
C8yTranslatePipe
|
| templateUrl | ./time-picker.component.html |
FormsModule
C8yTranslatePipe
)
ControlValueAccessor
OnDestroy
<table>
<tbody>
<tr>
<td class="form-group">
<input
type="text"
class="form-control text-center bs-timepicker-field"
[disabled]="disabled"
[placeholder]="'HH`HOURS`' | translate"
[(ngModel)]="hours"
(input)="parseValue('hours', 'lastValidHours', 23); initializeMinutes()"
(change)="emitValue()"
(wheel)="handleHourScroll($event)"
(focus)="markAsTouched()"
/>
</td>
<td> : </td>
<td class="form-group">
<input
type="text"
class="form-control text-center bs-timepicker-field"
[disabled]="disabled"
[placeholder]="'MM`MINUTES`' | translate"
[(ngModel)]="minutes"
(input)="parseValue('minutes', 'lastValidMinutes', 59); initializeHours()"
(change)="emitValue()"
(wheel)="handleMinuteScroll($event)"
(focus)="markAsTouched()"
/>
</td>
</tr>
</tbody>
</table>