Skip to content

Commit

Permalink
feat: add sunday-start modifier (#404)
Browse files Browse the repository at this point in the history
This allows a cleaner way to make the calendar start on Sunday.
  • Loading branch information
itsmenewbie03 committed May 8, 2024
1 parent bc00846 commit 3ab7577
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/View/Components/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [],
) {
Expand All @@ -38,6 +39,7 @@ public function setup(): string
'selection' => [
'day' => false,
],
'iso8601' => !$this->sundayStart,
],
'CSSClasses' => 'y',
'actions' => 'x',
Expand Down

0 comments on commit 3ab7577

Please sign in to comment.