Lean, UX-driven, and extensible, yet it doesn’t depend on any libraries. There’s minimal UI but many themes. Rich, exposed APIs and event system make it suitable for any environment.
For full documentation please check the plugin's site.
Usage
Flatpickr's CSS and Javascript files are bundled in the global plugin bundles and globally included in all pages:
Flatpickr's CSS is highly customized in sass/vendors/plugins/_flatpickr.scss SCSS file in order to use it as native component within the design system.
The SCSS code is compiled into assets/plugins/global/plugins.bundle.css and globally included in all pages.
Flatpickr's Javascript is globally initialized with some predefined settings in src/js/vendors/plugins/flatpickr.init.js and the initialization code is bundled within
assets/plugins/global/plugins.bundle.js and globally included in all pages.
To start usin Flatpckr right away, check the official Getting Started guide.
Basic Examples
Basic examples of Flatpickr on default and solid background input styles:
Select a range of dates using the range calendar. Note that disabled dates (by either minDate, maxDate, enable or disable) will not be allowed in selections.