Skip to content
29 changes: 20 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,29 @@ import { AngularDateTimePickerModule } from 'angular2-datetimepicker';
```
Declare the component data variables and options in your component where you want to consume the dropdown component.

```js
```js
import { Component, OnInit } from '@angular/core';

export class AppComponent implements OnInit {

date: Date = new Date();
settings = {
bigBanner: true,
timePicker: false,
format: 'dd-MM-yyyy',
defaultOpen: true
bigBanner: true,
timePicker: false,
format: 'dd-MM-yyyy',
defaultOpen: true,
minDate: new Date()
}
constructor(){}
ngOnInit(){

}
}

```

Add the following component tag in the template where your want to place the datepicker
Add the following component tag in the template where your want to place the datepicker.<br>
Min Date is optional.

```html

Expand All @@ -76,6 +78,10 @@ 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.|
|minDate|Date|new Date() |Pass minimum date beyond which all date will be disabale|
|preserveTimeValue|boolean| false |Time will not become 00:00 on selection of new date|
|incrementByMinutes|number|0 |Increment initial time by n minutes|



## Callback Methods
Expand Down Expand Up @@ -149,4 +155,9 @@ MIT License.
Thanks to Font Awesome and Moment.js for the libraries.

## Author
Pradeep Kumar Terli
Pradeep Kumar Terli

## Release Info
### 1.1.7
-----
New feature included opening of time window every time date is selected.
Binary file removed docs/assets/images/coffee11.png
Binary file not shown.
Binary file removed docs/assets/images/coffee14.png
Binary file not shown.
Binary file removed docs/assets/images/cuppa-logo-coffee11.png
Binary file not shown.
Binary file removed docs/assets/images/sand-background.jpg
Binary file not shown.
Binary file removed docs/favicon.ico
Binary file not shown.
Binary file removed docs/fontawesome-webfont.674f50d287a8c48dc19b.eot
Binary file not shown.
2,671 changes: 0 additions & 2,671 deletions docs/fontawesome-webfont.912ec66d7572ff821749.svg

This file was deleted.

Binary file removed docs/fontawesome-webfont.af7ae505a9eed503f8b8.woff2
Binary file not shown.
Binary file removed docs/fontawesome-webfont.b06871f281fee6b241d6.ttf
Binary file not shown.
Binary file removed docs/fontawesome-webfont.fee66e712a8a08eef580.woff
Binary file not shown.
91 changes: 0 additions & 91 deletions docs/index.html

This file was deleted.

151 changes: 0 additions & 151 deletions docs/inline.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/inline.bundle.js.map

This file was deleted.

Loading