OverviewOfficial Website
flatpickr is a lightweight and powerful datetime picker.
Javascript
<!-- flatpickr.js -->
<script type='text/javascript' src='assets/libs/flatpickr/flatpickr.min.js'></script> //html file
<script type='text/javascript' src='{{ URL::asset('build/libs/flatpickr/flatpickr.min.js') }}'></script> // laravel file
Note
Flatpickr js file is loaded in <script src="assets/js/pluggin.js"></script> //html file
Flatpickr js file is loaded in <script src="{{ URL::asset('build/js/plugins.js') }}"></script> // laravel file
Initjs (Custom js)
<!-- app js -->
<script src="assets/js/app.js"></script> //html file
<script src="{{ URL::asset('build/js/app.js') }}"></script> // laravel file
Add Package
yarn add flatpickr --save
Remove Package
yarn remove flatpickr or you can remove package by removing specific package from package.json
Flatpickr Examples:
Title | HTML |
---|---|
Basic |
|
DateTime |
|
Human-Friendly Dates |
|
MinDate and MaxDate |
|
Default Date |
|
Disabling Dates |
|
Selecting Multiple Dates |
|
Range |
|
Inline |
|
Timepickr Examples:
Title | HTML |
---|---|
Basic Timepicker |
|
24-hour Time Picker |
|
Time Picker w/ Limits |
|
Preloading Time |
|
Inline |
|