Is it possible to use modaltableselect in the attach action?
I have a relationship manager and when I click on the attach action I want it to open a modalTableSelect and be able to choose multiple rows. Is it possible?
8 Replies
Yes, it is possible.
By default, AttachAction is designed for attaching one related record at a time (using a Select field). If you want a modal with a table where you can select multiple rows, you’ll need to customize it a bit.
Did you manage to make it work?
Yes
Care to share the snippet of code?
Either I'm missing something, or you are looking for "->multipe()"
I already have a select with multiple() I want to use a new component modaltableselect to show the options as a table where you can use filters and such
Add multiple() to the ModalTableSelect::make(). Not the Select::make()
Gonna try that