ng2-datepicker
Angular 2+ Simple and minimal datepicker component
Installation
- Install package from
npm
.
npm install datepickerng2 --save
- Include NgDatepickerModule into your application.
;;;
Example
Additional attributes
Name | Type | Default | Description |
---|---|---|---|
headless |
boolean | false |
Disable datepicker's input |
isOpened |
boolean | false |
Show or hide datepicker |
position |
string | bottom-right |
Dropdown position (bottom-left , bottom-right , top-left , top-right ) |
Options
;; options: DatepickerOptions =;
For available format
options check out here.
In case you want to initialize with an empty value, just assign null to the model attribute you're storing the date and you can customize the message in the bar with the property barTitleIfEmpty
.
Run Included Demo
- Clone this repository
git clone https://github.com/jkuri/ng2-datepicker.gitcd ng2-datepicker
- Install packages
npm install
- Run Demo
npm start
Licence
MIT