Angular Directive to add virtual scroll.
Live Demo : https://mraghuram3.github.io/#/ngx-date-picker-component
To install this library, run:
$ npm install ngx-date-picker-component --save
Import NgxDatePickerModule
in the root module
import { NgxDatePickerModule } from 'ngx-date-picker-component';
@NgModule({
imports: [
// ...
NgxDatePickerModule,
...
]
})
In your template
<ngx-date-picker [mode]="'dropdown'" [format]="'DD-MM-YYYY'" (selected)="selectedDate($event)"></ngx-date-picker>
-
[mode]: string.
'dropdown' and 'inline' can be passed to enable respective mode.
-
[format]: string.
To change the date format of the displayed selected date.
-
(selected)="selectedDate($event)":
On selecting a date event with the selected date object will be emitted.
MIT © Raghu Ram M