livewire-datatables
livewire-datatables copied to clipboard
Checkbox select use cases
Hi,
What is the use case of the Column::checkbox() ? I am struggling to find a real scenario on using this with bulk actions such as activate/deactivate, change statuses, suspend etc or it works on the export only? Also there is an option to select all records however not sure I want that most of the cases? Anyway I select records in the current page besides All?
Any ideas would be appreciated
There is one use case, a feature i am planning to implement this week: to "pin" selected records. Image you have several thousand results and want to compare some specific rows together. You then can "pin" 5 selected ones and only display these to compare the values with each other.
Stuff like "Bulk Remove" or "Bulk Status Change" etc. could be implemented depending in the use case.
Is there a way to access the $selected
from my livewire component to grab the ids of the checked items?
Is there a way to access the
$selected
from my livewire component to grab the ids of the checked items?
Figured it out by setting $buttonsSlot
property to a component and I was able to access $selected
on it.