FilamentF
Filament12mo ago
Jordy

Passing a record to a chart

I want to pass a record to a ChartWidget, to base the data of of that record.

However I cannot add a parameter to the mount method because it must be compatible to the parent ChartWidget class that doesnt accept any params..
Solution
whats wrong with @livewire(GrainChart::class, ['record' => $this->record])
Was this page helpful?