-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfixes: * change time with minutesGap by using arrows (issue #103)
- Loading branch information
vitalii boiko
committed
Jan 26, 2019
1 parent
04a9b96
commit eef1fbd
Showing
4 changed files
with
86 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 24 additions & 20 deletions
44
...aterial-timepicker/components/timepicker-dial/ngx-material-timepicker-dial.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
<div class="timepicker-dial"> | ||
<div class="timepicker-dial__time"> | ||
<ngx-material-timepicker-dial-control [timeList]="hours" [time]="hour" [timeUnit]="timeUnit.HOUR" | ||
[isActive]="activeTimeUnit === timeUnit.HOUR" | ||
[isEditable]="isEditable" | ||
(timeUnitChanged)="changeTimeUnit($event)" | ||
(timeChanged)="changeHour($event)"> | ||
<div class="timepicker-dial__container"> | ||
<div class="timepicker-dial__time"> | ||
<ngx-material-timepicker-dial-control [timeList]="hours" [time]="hour" [timeUnit]="timeUnit.HOUR" | ||
[isActive]="activeTimeUnit === timeUnit.HOUR" | ||
[isEditable]="isEditable" | ||
(timeUnitChanged)="changeTimeUnit($event)" | ||
(timeChanged)="changeHour($event)"> | ||
|
||
</ngx-material-timepicker-dial-control> | ||
<span>:</span> | ||
<ngx-material-timepicker-dial-control [timeList]="minutes" [time]="minute" [timeUnit]="timeUnit.MINUTE" | ||
[isActive]="activeTimeUnit === timeUnit.MINUTE" | ||
[isEditable]="isEditable" | ||
(timeUnitChanged)="changeTimeUnit($event)" | ||
(timeChanged)="changeMinute($event)"> | ||
</ngx-material-timepicker-dial-control> | ||
<span>:</span> | ||
<ngx-material-timepicker-dial-control [timeList]="minutes" [time]="minute" [timeUnit]="timeUnit.MINUTE" | ||
[isActive]="activeTimeUnit === timeUnit.MINUTE" | ||
[isEditable]="isEditable" | ||
[minutesGap]="minutesGap" | ||
(timeUnitChanged)="changeTimeUnit($event)" | ||
(timeChanged)="changeMinute($event)"> | ||
|
||
</ngx-material-timepicker-dial-control> | ||
</ngx-material-timepicker-dial-control> | ||
</div> | ||
<ngx-material-timepicker-period class="timepicker-dial__period" | ||
[ngClass]="{'timepicker-dial__period--hidden': format === 24}" | ||
[selectedPeriod]="period" [activeTimeUnit]="activeTimeUnit" | ||
[maxTime]="maxTime" [minTime]="minTime" [format]="format" | ||
[hours]="hours" [minutes]="minutes" [selectedHour]="hour" | ||
(periodChanged)="changePeriod($event)"></ngx-material-timepicker-period> | ||
</div> | ||
<ngx-material-timepicker-period class="timepicker-dial__period" | ||
[ngClass]="{'timepicker-dial__period--hidden': format === 24}" | ||
[selectedPeriod]="period" [activeTimeUnit]="activeTimeUnit" | ||
[maxTime]="maxTime" [minTime]="minTime" [format]="format" | ||
[hours]="hours" [minutes]="minutes" [selectedHour]="hour" | ||
(periodChanged)="changePeriod($event)"></ngx-material-timepicker-period> | ||
<small class="timepicker-dial__hint" *ngIf="isEditable">* use arrows (<span>⇅</span>) to change the time</small> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters