Skip to content

icenorge/flatpickr

 
 

Repository files navigation

flatpickr - javascript datetime picker

Build Status

Coverage npm version CDNJS License

changes in this version:

Changes:

  • use button for calendar dates - aria tags on span or div is not read by a screenreader and the navigation is easier with buttons.
  • use buttons for calendar month arrows
  • added tab trapping.

new config params changes

  • toMonthOnOpen: true : If dialog is closed and the calendar is not on the month of the current date, go to month of the curent date when open.
  • stopNoMoreDates: false : If "true" and there is a list of available dates stop navigation to next/prev month if no available dates and show a message
  • noMoreDatesText: "No more available dates on {m} {y}" : actual message if navigation to next/prev month is trapped. m = month, y = year
  • openOnFocus: If "true" - calendar open when input if focused, else kalender vil open on enter

Motivation

We need a more Universal Designed version of the calendar than the original

Compatibility

Edge, iOS Safari 6+, Chrome 8+, Firefox 6+ This version is not testet for IE

Install & Use

Demos and documentation for original: https://flatpickr.js.org

See also:

Supporting flatpickr

flatpickr will never change its license, pester users for donations, or engage in other user-hostile behavior.

Nevertheless, if you enjoyed working with this library or if its made your life easier, you can buy me a cup of coffee :)

Buy Me a Coffee at ko-fi.com

About

lightweight, powerful javascript datetimepicker with no dependencies

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 92.5%
  • Stylus 5.7%
  • HTML 1.2%
  • Other 0.6%