use Filament\Widgets\Widget;
use Illuminate\Support\HtmlString;
class FullCalendarTest extends Widget
{
protected static bool $isLazy = false;
protected static string $view = 'filament.widgets.full-calendar-test';
public $events = [];
public function mount()
{
$this->events = [
[
'id' => 'test',
'title' => 'Brian Kidd Tests',
'start' => now()->format('Y-m-d'),
'extendedProps' => [
'description' => '<strong>Hello from Filament Discord !</strong>',
],
],
[
'id' => 'test',
'title' => 'Brian Kidd Tests Urgent',
'start' => now()->addWeek()->format('Y-m-d'),
'extendedProps' => [
'isUrgent' => true,
'description' => '<strong class="text-danger-600">Hello from Filament Discord !</strong>',
],
],
];
}
}
use Filament\Widgets\Widget;
use Illuminate\Support\HtmlString;
class FullCalendarTest extends Widget
{
protected static bool $isLazy = false;
protected static string $view = 'filament.widgets.full-calendar-test';
public $events = [];
public function mount()
{
$this->events = [
[
'id' => 'test',
'title' => 'Brian Kidd Tests',
'start' => now()->format('Y-m-d'),
'extendedProps' => [
'description' => '<strong>Hello from Filament Discord !</strong>',
],
],
[
'id' => 'test',
'title' => 'Brian Kidd Tests Urgent',
'start' => now()->addWeek()->format('Y-m-d'),
'extendedProps' => [
'isUrgent' => true,
'description' => '<strong class="text-danger-600">Hello from Filament Discord !</strong>',
],
],
];
}
}