F
Filament16mo ago
lazydog

Custom Page and Widgets

How can I display my generated widgets to my custom page?
5 Replies
torriv
torriv16mo ago
have you added the widgets to your getFooterWidgets() or getHeaderWidgets() on your custom page?
lazydog
lazydogOP16mo ago
Yes, I did
lazydog
lazydogOP16mo ago
This is what I've done 1. Created a custom Dashboard 2. Created a livewire page, then make it as my dashboard 3. Created a widget
torriv
torriv16mo ago
i might be wrong, but i think it should be something like this:
protected function getFooterWidgets(): array
{
return [
NameOfYourWidget::class
];
}
protected function getFooterWidgets(): array
{
return [
NameOfYourWidget::class
];
}
lazydog
lazydogOP16mo ago
I might be wrong too but when I add the below codes, it's now working
<x-filament-widgets::widgets
:widgets="$this->getVisibleWidgets()"
:columns="$this->getColumns()"
/>
<x-filament-widgets::widgets
:widgets="$this->getVisibleWidgets()"
:columns="$this->getColumns()"
/>
Want results from more Discord servers?
Add your server