livewire-datatables icon indicating copy to clipboard operation
livewire-datatables copied to clipboard

Checkbox select use cases

Open alaa-almaliki opened this issue 3 years ago • 3 comments

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

alaa-almaliki avatar Feb 14 '22 13:02 alaa-almaliki

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.

thyseus avatar Feb 14 '22 14:02 thyseus

Is there a way to access the $selected from my livewire component to grab the ids of the checked items?

dotmarn avatar Mar 30 '23 21:03 dotmarn

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.

dotmarn avatar Mar 30 '23 23:03 dotmarn