Skip to content

Commit

Permalink
Add view argument to onDateSelect method
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoldev committed Oct 6, 2023
1 parent 1da696d commit e200e74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Widgets/Concerns/InteractsWithEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ public function onEventResize(array $event, array $oldEvent, array $relatedEvent
* @param string $start An ISO8601 string representation of the start date. It will have a timezone offset similar to the calendar’s timeZone. If selecting all-day cells, it won’t have a time nor timezone part.
* @param string $end An ISO8601 string representation of the end date. It will have a timezone offset similar to the calendar’s timeZone. If selecting all-day cells, it won’t have a time nor timezone part.
* @param bool $allDay Whether the selection happened on all-day cells.
* @param array $view A View array that contains information about a calendar view, such as title and date range.
* @return void
*/
public function onDateSelect(string $start, ?string $end, bool $allDay): void
public function onDateSelect(string $start, ?string $end, bool $allDay, ?array $view): void
{
[$start, $end] = $this->calculateTimezoneOffset($start, $end, $allDay);

Expand Down

0 comments on commit e200e74

Please sign in to comment.