Skip to content

mraghuram3/ngx-date-picker-component

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published