0.0.2 • Published 6 years ago

ngx-date-picker-component v0.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

ngx-date-picker-component

Angular Directive to add virtual scroll.

Live Demo : https://mraghuram3.github.io/#/ngx-date-picker-component

Installation

To install this library, run:

$ npm install ngx-date-picker-component --save

Usage

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.

License

MIT © Raghu Ram M