From f0650865a1819cb85f97e2325909093c735bcb88 Mon Sep 17 00:00:00 2001 From: Sam Maosa Date: Tue, 9 Aug 2022 00:13:30 +0300 Subject: [PATCH] New Features Added: - Added support for confirmDate plugin - Configurable date mode including range and multiple pickers: rangePicker() and multiplePicker() functions - Added support for weekSelect plugin - Added the missing hasConfigFile() directive in spatie tools --- resources/views/flatpickr.blade.php | 24 +++++++--- src/Flatpickr.php | 70 ++++++++++++++++++++++++++--- src/FlatpickrServiceProvider.php | 12 +++-- 3 files changed, 89 insertions(+), 17 deletions(-) diff --git a/resources/views/flatpickr.blade.php b/resources/views/flatpickr.blade.php index 07f913f..a533307 100644 --- a/resources/views/flatpickr.blade.php +++ b/resources/views/flatpickr.blade.php @@ -7,12 +7,15 @@ $attribs = [ "disabled" => $isDisabled(), "theme" => $getTheme(), + 'monthSelect' => $isMonthSelect(), + 'weekSelect' => $isWeekSelect(), + 'mode' => $isRangePicker() ? 'range' : ($isMultiplePicker() ? 'multiple': 'single') ]; @endphp @once