V2 - Index/list page additional button next to the 'New ...' button
Title sums this up - in a V2 app I need to add an action (to open a modal) from a button placed next to the 'New <resource>' button above the table. Checked the V2 docs but not sure this is possible?
5 Replies
Not the same thing exactly, but checkout the solution proposed here https://discord.com/channels/883083792112300104/1146230492375548024
I'm using it and it works great
Thanks for the reply but not quite what I want - table/bulk actions apply to the (selected) row(s) but I need a stand alone action on the index page.
oh sorry I think I misunderstood your question
you can add a custom action to the
->headerActions([])
array in your relation manager
and give it a ->form()
and ->action()
and that will open a modal
use ->button()
to make it look like a buttonaieee -
getActions
is available on the list page I was focusing only on getTableActions
- thanks