How to use custom column inside ViewAction
i created a custom column which im using in my table component.
https://filamentphp.com/docs/2.x/tables/columns/custom#view-column
In the docs, i understood that i can also use it inside a view action:
but im getting:
what should i do?
5 Replies
seems i understood it wrong hmm. but anyways is there somehow to do what i try to achieve? im diggin in the docs to see if i can find it
if someone replies, id appreciate an @ so i get notified, thanks (:
@ericmp columns are not form fields
they are separate objects
thanks yeah hmm. so is there any way to put like a custom component inside a view modal?
yes, a form component
View::make()
or ViewField::make()
depending if you want to store state or not
or if this is the only thing in the entire action form, you can use modalContent() instead to render a view instead of a formi see. ill try that. thanks again!