Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sitenzo authored Nov 22, 2023
1 parent 536cf81 commit d6e2495
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,31 @@ class AdminPanelProvider extends PanelProvider
}
```

```php
<?php
namespace App\Filament\Widgets;

use Saade\FilamentFullCalendar\Widgets\FullCalendarWidget;
use App\Models\Event;

class CalendarWidget extends FullCalendarWidget
{
public Model | string | null $model = Event::class;

public function getConfig(): array
{
return [
'firstDay' => 1,
'headerToolbar' => [
'left' => 'dayGridWeek,dayGridDay',
'center' => 'title',
'right' => 'prev,next today',
],
];
}
}
```

## Available methods

### schedulerLicenseKey(`string` | `null` $licenseKey)
Expand Down

0 comments on commit d6e2495

Please sign in to comment.