Skip to content

Commit

Permalink
fix(timepicker): changed description for arrow keys (#4672)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarusin authored and valorkin committed Oct 12, 2018
1 parent 0ec4c70 commit 4a58fe3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<timepicker [(ngModel)]="myTime" [arrowkeys]="allowArrowKeys"></timepicker>
<hr>

<button type="button" class="btn btn-info section bd-example" (click)="allowArrowKeys = !allowArrowKeys">Enable / Disable arrow keys</button>
<button type="button" class="btn btn-info section bd-example" (click)="allowArrowKeys = !allowArrowKeys">Enable / Disable keyboard arrow keys</button>

<pre class="alert alert-info">Time is: {{myTime}}</pre>
4 changes: 2 additions & 2 deletions demo/src/ng-api-doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2751,7 +2751,7 @@ export const ngdoc: any = {
{
"name": "arrowkeys",
"type": "boolean",
"description": "<p>if true up/down arrowkeys inside hours and minutes inputs will change time </p>\n"
"description": "<p>if true the values of hours and minutes can be changed using the up/down arrow keys on the keyboard </p>\n"
},
{
"name": "disabled",
Expand Down Expand Up @@ -2838,7 +2838,7 @@ export const ngdoc: any = {
"name": "arrowkeys",
"defaultValue": "true",
"type": "boolean",
"description": "<p>if true up/down arrowkeys inside hours and minutes inputs will change time </p>\n"
"description": "<p>if true the values of hours and minutes can be changed using the up/down arrow keys on the keyboard </p>\n"
},
{
"name": "disabled",
Expand Down
2 changes: 1 addition & 1 deletion src/timepicker/timepicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class TimepickerComponent
@Input() disabled: boolean;
/** if true scroll inside hours and minutes inputs will change time */
@Input() mousewheel: boolean;
/** if true up/down arrowkeys inside hours and minutes inputs will change time */
/** if true the values of hours and minutes can be changed using the up/down arrow keys on the keyboard */
@Input() arrowkeys: boolean;
/** if true spinner arrows above and below the inputs will be shown */
@Input() showSpinners: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/timepicker/timepicker.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class TimepickerConfig {
disabled = false;
/** if true scroll inside hours and minutes inputs will change time */
mousewheel = true;
/** if true up/down arrowkeys inside hours and minutes inputs will change time */
/** if true the values of hours and minutes can be changed using the up/down arrow keys on the keyboard */
arrowkeys = true;
/** if true spinner arrows above and below the inputs will be shown */
showSpinners = true;
Expand Down

0 comments on commit 4a58fe3

Please sign in to comment.