You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, I want to add some other content under the Summary tab. Under here, I would like to render a lot of different widgets (it's basically an analytics page). So, I was thinking that it would be nice to be able to utilize just another custom page (or dashboard even), so I could just add the widgets using the getHeaderWidgets() method, and don't worry about the Blade / HTML part.
I have tried to create a custom page CompanySummary.php:
useFilament\Pages\Page;
class CompanySummary extends Page
{
protectedstatic ?string$navigationIcon = 'heroicon-o-document-text';
protectedstaticstring$view = 'filament.app.pages.company-summary';
protectedfunctiongetHeaderWidgets(): array
{
return [
//I will place my widgets here.
];
}
}
It renders the new page, however, it includes it as a new page within my existing page (e.g., two titles and filter actions) - where I essentially, would also like to use my original page filters'.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Package
Panel builder
Package Version
v3
How can we help you?
Hi.
I have a custom page, which I've created called "CompanyOverview". It's a simple page, with a blade view like so:
As you can see, on this page, I simply include a Livewire component in my first tab. This component just renders a standard Filament table:
Now, I want to add some other content under the
Summary
tab. Under here, I would like to render a lot of different widgets (it's basically an analytics page). So, I was thinking that it would be nice to be able to utilize just another custom page (or dashboard even), so I could just add the widgets using thegetHeaderWidgets()
method, and don't worry about the Blade / HTML part.I have tried to create a custom page
CompanySummary.php
:It renders the new page, however, it includes it as a new page within my existing page (e.g., two titles and filter actions) - where I essentially, would also like to use my original page filters'.
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions