Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Following `settings` object properties can be used to configure the component.
|defaultOpen|Boolean|false|To open the datepicker popover on load. Default is set to false.|
|timePicker|Boolean|false|Enable time picker feature.|
|closeOnSelect|Boolean|true|to close the popover on date select or on click of done button.|

|className|String||Adds a custom class name to the parent element.|

## Callback Methods

Expand Down
2 changes: 1 addition & 1 deletion src/app/angular2-datetimepicker/datepicker.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="winkel-calendar" (clickOutside)="closepopover()">
<div [attr.class]="settings.className ? 'winkel-calendar ' + settings.className : 'winkel-calendar'" (clickOutside)="closepopover()">
<span *ngIf="!settings.rangepicker">
<input type="hidden" class="wc-input" value="{{date}}">
<div class="wc-date-container" (click)="popover = !popover">
Expand Down
1 change: 1 addition & 0 deletions src/app/angular2-datetimepicker/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export interface Settings{
cal_months_labels_short: Array<string>;
closeOnSelect?: boolean;
rangepicker?: boolean;
className?: string;
}