how can i render widgets manually in dashboard pag
hi
I am trying to manually manage the dashboard page
But how is this possible?
I created the dashboard page and I am trying to render the page manually in the blade
But my problem is that Filament is automatically rendering the widgets
4 Replies
app/Filament/Pages/Dashboard.php
resource/views/filament/pages/dashboard.blade.php
The output of the blade page for widgets is
<livewire:App\Filament\Widgets\UsersChart />
Is this what happens if I want to manually render a widget?
Dont use headerWidgets, use schema with Forms/Livewire and inject widget in Livewire field. Check documentation
you can do
@livewire(YourWidget::class)
inside of a blade view
you can also add
Livewire::make(YourWidget::class) to a form which is a nicer solution if you reuse your views or already have a form on the pageFilament automatically renders widgets because you extend Basedashboard instead of page