-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add slot label and day header format options
Signed-off-by: Lukas Frey <[email protected]>
- Loading branch information
1 parent
bca113d
commit fb806f6
Showing
7 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Guava\Calendar\Concerns; | ||
|
||
trait HandlesEventAllUpdated | ||
{ | ||
protected bool $eventAllUpdatedEnabled = false; | ||
|
||
public function onEventAllUpdated(array $info = []): void {} | ||
|
||
public function eventAllUpdated(bool $enabled = true): static | ||
{ | ||
$this->eventAllUpdatedEnabled = $enabled; | ||
|
||
return $this; | ||
} | ||
|
||
public function isEventAllUpdatedEnabled(): bool | ||
{ | ||
return $this->eventAllUpdatedEnabled; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Guava\Calendar\Concerns; | ||
|
||
use Livewire\Attributes\Js; | ||
|
||
trait HasDayHeaderFormat | ||
{ | ||
#[Js] | ||
public function getDayHeaderFormatJs(): ?string | ||
{ | ||
return <<<'JS' | ||
null | ||
JS; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Guava\Calendar\Concerns; | ||
|
||
use Livewire\Attributes\Js; | ||
|
||
trait HasSlotLabelFormat | ||
{ | ||
#[Js] | ||
public function getSlotLabelFormatJs(): ?string | ||
{ | ||
return <<<'JS' | ||
null | ||
JS; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters