How to use?
Copy-paste the stylesheet <link>
into your <head>
to load the CSS.
Copy-paste the following <script>
near the end of your pages under JS Implementing Plugins to enable it.
Copy-paste the following <script>
near the end of your pages under JS Front to enable it.
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
Basic example
Basic example that highlights today's day.
MoTuWeThFrSaSu
311234567891011121314151617181920212223242526272829301234567891011
Range example that shows starting and ending highlighted dates.
MoTuWeThFrSaSu
27282930311234567891011121314151617181920212223242526272829301234567
Methods
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-hs-flatpickr-options='{}'
. For more detailed or missing attributes/functions, see the official Flatpickr documentation documentation page.
Parameters | Description | Default value |
---|---|---|
|
single , multiple , or range |
single |
|
A string of characters which are used to define how the date will be displayed in the input box. The supported characters are defined in this table. | 'd M Y' |
|
The maximum date that a user can pick to (inclusive) | false |
|
As a container for parameters for a specific language. |