@rifansi/angular-datetime-picker
Version:
Angular Date Time Picker
59 lines (58 loc) • 1.82 kB
HTML
<owl-date-time-timer-box
["upHourButtonLabel"
[ ]="downHourButtonLabel"
[ ]="!upHourEnabled()"
[ ]="!downHourEnabled()"
[ ]="hourBoxValue"
[ ]="hourValue"
[ ]="0"
[ ]="23"
[ ]="stepHour"
[ ]="'Hour'"
(inputChange)="setHourValueViaInput($event)"
(valueChange)="setHourValue($event)"
></owl-date-time-timer-box>
<owl-date-time-timer-box
[ ]="true"
[ ]="upMinuteButtonLabel"
[ ]="downMinuteButtonLabel"
[ ]="!upMinuteEnabled()"
[ ]="!downMinuteEnabled()"
[ ]="minuteValue"
[ ]="0"
[ ]="59"
[ ]="stepMinute"
[ ]="'Minute'"
(inputChange)="setMinuteValue($event)"
(valueChange)="setMinuteValue($event)"
></owl-date-time-timer-box>
@if (showSecondsTimer) {
<owl-date-time-timer-box
[ ]="true"
[ ]="upSecondButtonLabel"
[ ]="downSecondButtonLabel"
[ ]="!upSecondEnabled()"
[ ]="!downSecondEnabled()"
[ ]="secondValue"
[ ]="0"
[ ]="59"
[ ]="stepSecond"
[ ]="'Second'"
(inputChange)="setSecondValue($event)"
(valueChange)="setSecondValue($event)"
></owl-date-time-timer-box>
}
@if (hour12Timer) {
<div class="owl-dt-timer-hour12">
<button
class="owl-dt-control-button owl-dt-timer-hour12-box"
type="button"
tabindex="0"
(click)="setMeridiem($event)"
>
<span class="owl-dt-control-button-content" tabindex="-1">
{{ hour12ButtonLabel }}
</span>
</button>
</div>
}
]=