Select->multiple() in SelectColumn?
Hi all,
Would like to have a select "multiple" as SelectColumn. Doesn't seem to be possible yet out of the box right?
How should I approach this? Custom column?
7 Replies
Yeah, you could extend the default column or try a PR to make this possible.
Depending on your use case look into BulkActions perhaps
you can write a CustomColumn, I was looking at doing the exact same thing, ended up putting the form into a ->slideover()
message me if you can solve this
Will give it a go!
yes having a slideover right now, but for the users it's one click too many 😅
@Dennis Koch @Dhru @Giant Robo managed it adding a separate Form to the Livewire component that currently has the table.
The table cell that should have the select multiple now has a custom view to render the specific form field matching the row
form-column view reused for multiple fields:

This solution does need the following for the livewire component:
and I added a custom save action below the table as the user wants to save all changes together and not "live"
There you can then just do
$this->form->getState()
If you want to know more about the solution / something is not clear, let me know, I'll post some more detailsNicely done! Thanks for sharing the update