0.0.2 • Published 6 years ago

sudatepicker v0.0.2

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

Datepicker

Installation

To install this library, run:

$ npm install sudatepicker --save

Consuming your library

Add the below line in app.module.ts
  import { DatepickerModule, , SuPluginsDatepickerComponent } from 'sudatepicker/public_api';
And this import in app.module.ts
imports: [
    BrowserModule,
    DatepickerModule, <-- here
    CommonModule,
    FormsModule
  ],
And this line to entryComponents
entryComponents: [SuPluginsDatepickerComponent]

Include it in the app.component.html

<suplugin-datepicker></suplugin-datepicker>

How to use it

<input type="text" [dateVal]="date1" (onDateSelection)="onDateSelect($event)" [format]="'MMM-YYYY-DD'" [(ngModel)]="date1" suDatePicker />

Input and Output

  • @Input - dateVal
  • @input - format (optional)
  • @output - OnDateSelection

LICENSE

It currently supports ngModel in the text input element and the support for reactiveform is pending still.

License

MIT © Sudhakar Pilavadi

Keywords

Angular 6 Datepicker, Angular Datepicker, Angular 5 Datepicker

0.0.2

6 years ago

0.0.1

6 years ago