// DOCS CALENDAR 3.x

Calendar views

By default, the calendar shows the DayGridMonth view. You can change it by overriding the calendarView property:

use Guava\Calendar\Enums\CalendarViewType;

protected CalendarViewType $calendarView = CalendarViewType::TimeGridWeek;

Available views

The CalendarViewType enum contains all views the underlying calendar supports:

View type Description
DayGridDay, DayGridWeek, DayGridMonth The classic grid of day cells
TimeGridDay, TimeGridWeek Days split into time slots
ListDay, ListWeek, ListMonth, ListYear Events as a simple list
ResourceTimeGridDay, ResourceTimeGridWeek Time grid with a column per resource
ResourceTimelineDay, ResourceTimelineWeek, ResourceTimelineMonth, ResourceTimelineYear Horizontal timeline with a row per resource
NOTEIf you pick one of the Resource* views, you also need to tell the calendar which resources to display.

guava/calendar 417K installs · 310 stars
// COOKIES

A few cookies keep the site working; others remember preferences or count visits. You choose what runs.

Cookie policy