// DOKUMENTACE CALENDAR 3.x

Creating a widget

Create a widget class and extend CalendarWidget:

use Guava\Calendar\Filament\CalendarWidget;

class MyCalendarWidget extends CalendarWidget
{
}

You can also generate it with artisan:

php artisan make:filament-widget
IMPORTANTIf you use the artisan command, make sure to remove the generated $view property from the class. Our widget brings its own view.

Then register the widget like any other filament widget, for example on your Dashboard or on a resource page. That's all, you now have a working calendar in your panel :)

The widget spans the full width of the page by default. Since it is a regular filament widget, you can change that through the usual $columnSpan property.

Your calendar is still empty at this point. Continue with adding events to fill it.

guava/calendar 417K instalací · 310 hvězd
// COOKIES

Pár cookies drží web v chodu; další si pamatují nastavení nebo počítají návštěvy. Vy rozhodujete, co poběží.

Zásady cookies