custom modal content
I make a filament page and implement HasTable,
i want to make action view with modal and use custom modal content, but the modal not show up and no error,
but if use
its work, but that not what i want, i want to add action on the table
16 Replies
Action needs an action.. so ->action(fn($record) => '') otheriwse actions are not rendered.
the action button is rendered, but the modal not show up when clicked
Exactly because you haven't defined an action.
Might work... But tbh? I would say you will need a form? I.e.
Table actions are designed to be an actionable button which runs an action simply.
but why when i use same action on Resource table its work
Because you used it in a header opposed to a table. Tables render lots of rows and for performance action is assumed.
no, i use it on the table also, not the header
Where?

But you stated above that doesn't work?

this is on a Resource
Ok so then you need to add the modal call in the custom view
to the footer of the page? Could possible solve it.

not work also

its not work also