Skip to content
This repository has been archived by the owner on Mar 2, 2018. It is now read-only.

Changes to improve currentTime method #195

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ please send me email to `allenhwkim AT gmail.com` with your github id.
* **min-hour** number, mininum selectable hour
* **max-hour** number, maximum selectable hour
* **disabled-dates** Array of Date, dates not selectable
* **show-week-numbers** trueor false, default false. Show week numbers
* **show-week-numbers** true or false, default false. Show week numbers
* **use-utc** true or false, default false. Current Time method use UTC values
* **current-is-today** true or false, default false. Current Time method also change date to "today"

## Outputs of directive

Expand Down
82,843 changes: 82,695 additions & 148 deletions app/build/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/build/app.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dist/datetime-picker.component.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export declare class NguiDatetimePickerComponent {
showWeekNumbers: boolean;
showTodayShortcut: boolean;
showAmPm: boolean;
useUtc: boolean;
currToday: boolean;
selected$: EventEmitter<any>;
closing$: EventEmitter<any>;
hours: ElementRef;
Expand All @@ -47,6 +49,12 @@ export declare class NguiDatetimePickerComponent {
toDate(day: number, month?: number): Date;
toDateOnly(date: Date): Date;
selectCurrentTime(): void;
/**
* set the hour and minute
* @param hour {string}
* @param minute {string}
*/
selectTime(hour: any, minute: any): void;
/**
* set the selected date and close it when closeOnSelect is true
* @param date {Date}
Expand Down
51 changes: 36 additions & 15 deletions dist/datetime-picker.component.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/datetime-picker.component.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/datetime-picker.component.metadata.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/datetime-picker.directive.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export declare class NguiDatetimePickerDirective implements OnInit, OnChanges {
showWeekNumbers: boolean;
formControlName: string;
isDraggable: boolean;
useUtc: boolean;
currToday: boolean;
ngModel: any;
ngModelChange: EventEmitter<{}>;
valueChanged$: EventEmitter<{}>;
Expand Down
10 changes: 8 additions & 2 deletions dist/datetime-picker.directive.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading