How to pass data into a filament page?
How do I pass data in the render function without overriding the main one.
11 Replies
Is this for your quiz? just use a filament form and a view field tbh... But it all depends on where the data is from etc
Filemant Pages are Livewire components so the same rules apply. You can use
#[Computed]
values. Or public propertiesthis is one of my livewire components render function
how would i do the same in a filament page without overriding the base render function?
Something like that?
That still overrides the render method π
It returns the parent render so it doesn't replace it which is what I presume MZX means.
But you can access public properties and methods and can add data via mount
Ahaha of course, I heard render and stuck with it, I assumed for when he is re-rendering. But updated it anyway.
it says method not found
Where does it say that?
i actually managed to make it work. Just the standard mounting worked. I actually had another issue with the scope.
If anyone comes across this, if you want to pass something in the render function of a filament page, this is how you do it.