2.1.3 • Published 6 years ago

ngx-flatpickrjs v2.1.3

Weekly downloads
79
License
-
Repository
github
Last release
6 years ago

ngx-flatpickr

npm version


flatpickr for Angular 2+


Exemple:

<ngx-flatpickr
  language="french"
  placeholder="Please select a date"
  [options]="options"
  [default]="date"
  (onDateSelect)="setDate($event)"
  (onInit)="initialized($event)"
  >
</ngx-flatpickr>
  • language (Input):
    the language of the flatpickr instance

    All the locales from flatpickr are available, both full country names and codes can be used (Eg: "French" and "fr" both work)

    A full list of all the locales can be seen in the flatpickr github repository

  • options (Input):
    the placeholder text of the input field

    All the options available can be seen on the flatpickr website

  • onInit (Output): function launched after the picker is initialized

    The value returned in $event is the flatpickr instance

  • default (Input):
    the default date

  • onDateSelect (Output): function launched every time a date is selected

    The value returned in $event is an array containing the selected date(s)

  • placeholder (Input):
    the placeholder text of the input field


This component also works with FormControl :

<ngx-flatpickr
  placeholder="Please select a date"
  [formControl]="date"
  >
</ngx-flatpickr>
this.date = new FormControl(new Date(), Validators.required)
2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago