how to pass in parameters into custom column
in my custom column i have a text and an image
sometimes, i want to show first the image, then the text
sometimes, i want to show first the text, then the img
is there a way to achieve this passing a param to my custom column?
5 Replies
Something like this in your custom column class :
Then you should be able to set the option from the resource or table config :
and get it in your Blade view :
that is awesome
is there any documentation on this in filamentphp docs? id like to learn more bout it
@pboivin
I don't remember seeing this in the docs, I was just digging in the source code of the built-in columns to see how it works.
i think i should do it too then
thanks again!!
You're welcome π