Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ To customise the modal, override the following properties in your widget:

- `protected string $modalWidth`
- `protected string $modalLabel`
- `protected bool $modalSlideover`

The process of saving and editing the event is up to you, since this plugin does not rely on a Model to save the calendar events.

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/create-event-modal.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<x-filament::form wire:submit.prevent="onCreateEventSubmit">
<x-filament::modal id="fullcalendar--create-event-modal" :width="$this->getModalWidth()">
<x-filament::modal id="fullcalendar--create-event-modal" :width="$this->getModalWidth()" :slide-over="$this->getModalSlideover()">
<x-slot name="header">
<x-filament::modal.heading>
{{ $this->getCreateEventModalTitle() }}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/edit-event-modal.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<x-filament::form wire:submit.prevent="onEditEventSubmit">
<x-filament::modal id="fullcalendar--edit-event-modal" :width="$this->getModalWidth()">
<x-filament::modal id="fullcalendar--edit-event-modal" :width="$this->getModalWidth()" :slide-over="$this->getModalSlideover()">
<x-slot name="header">
<x-filament::modal.heading>
{{ $this->getEditEventModalTitle() }}
Expand Down
7 changes: 7 additions & 0 deletions src/Widgets/Concerns/CanManageModals.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ trait CanManageModals

protected string $modalWidth = 'sm';

protected bool $modalSlideover = false;

protected function getModalLabel(): string
{
return $this->modalLabel;
Expand All @@ -18,6 +20,11 @@ protected function getModalWidth(): string
return $this->modalWidth;
}

protected function getModalSlideover(): bool
{
return $this->modalSlideover;
}

public function isListeningCancelledEditModal(): bool
{
return in_array('cancelledFullcalendarEditEventModal', $this->getEventsBeingListenedFor());
Expand Down