Skip to content

Commit

Permalink
feat(timepicker): upgrade timepicker to v4-alpha.6
Browse files Browse the repository at this point in the history
refs #1178
Closes #1186
  • Loading branch information
jnizet authored and pkozlowski-opensource committed Jan 9, 2017
1 parent d8bfe37 commit 4288e22
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/timepicker/timepicker.ts
Expand Up @@ -48,27 +48,31 @@ const NGB_TIMEPICKER_VALUE_ACCESSOR = {
cursor: not-allowed;
opacity: .65;
}
input {
text-align: center;
}
`],
template: `
<fieldset [disabled]="disabled" [class.disabled]="disabled">
<table>
<tr *ngIf="spinners">
<td class="text-xs-center">
<td class="text-center">
<button type="button" class="btn-link" (click)="changeHour(hourStep)"
[disabled]="disabled" [class.disabled]="disabled">
<span class="chevron"></span>
</button>
</td>
<td>&nbsp;</td>
<td class="text-xs-center">
<td class="text-center">
<button type="button" class="btn-link" (click)="changeMinute(minuteStep)"
[disabled]="disabled" [class.disabled]="disabled">
<span class="chevron"></span>
</button>
</td>
<template [ngIf]="seconds">
<td>&nbsp;</td>
<td class="text-xs-center">
<td class="text-center">
<button type="button" class="btn-link" (click)="changeSecond(secondStep)"
[disabled]="disabled" [class.disabled]="disabled">
<span class="chevron"></span>
Expand Down Expand Up @@ -106,22 +110,22 @@ const NGB_TIMEPICKER_VALUE_ACCESSOR = {
</template>
</tr>
<tr *ngIf="spinners">
<td class="text-xs-center">
<td class="text-center">
<button type="button" class="btn-link" (click)="changeHour(-hourStep)"
[disabled]="disabled" [class.disabled]="disabled">
<span class="chevron bottom"></span>
</button>
</td>
<td>&nbsp;</td>
<td class="text-xs-center">
<td class="text-center">
<button type="button" class="btn-link" (click)="changeMinute(-minuteStep)"
[disabled]="disabled" [class.disabled]="disabled">
<span class="chevron bottom"></span>
</button>
</td>
<template [ngIf]="seconds">
<td>&nbsp;</td>
<td class="text-xs-center">
<td class="text-center">
<button type="button" class="btn-link" (click)="changeSecond(-secondStep)"
[disabled]="disabled" [class.disabled]="disabled">
<span class="chevron bottom"></span>
Expand Down

0 comments on commit 4288e22

Please sign in to comment.