From 3ab757727a537b6b3dac8e1527e2c8997c21eda8 Mon Sep 17 00:00:00 2001 From: itsmenewbie03 <89230263+itsmenewbie03@users.noreply.github.com> Date: Wed, 8 May 2024 20:05:55 +0800 Subject: [PATCH] feat: add `sunday-start` modifier (#404) This allows a cleaner way to make the calendar start on Sunday. --- src/View/Components/Calendar.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/View/Components/Calendar.php b/src/View/Components/Calendar.php index 37ddbcc7..5ae04624 100644 --- a/src/View/Components/Calendar.php +++ b/src/View/Components/Calendar.php @@ -16,6 +16,7 @@ public function __construct( public ?int $months = 1, public ?string $locale = 'en-EN', public ?bool $weekendHighlight = false, + public ?bool $sundayStart = false, public ?array $config = [], public ?array $events = [], ) { @@ -38,6 +39,7 @@ public function setup(): string 'selection' => [ 'day' => false, ], + 'iso8601' => !$this->sundayStart, ], 'CSSClasses' => 'y', 'actions' => 'x',