rappasoft / laravel-livewire-tables

A dynamic table component for Laravel Livewire
https://rappasoft.com/docs/laravel-livewire-tables/v2/introduction
MIT License
1.7k stars 319 forks source link

[Feature Request]: Hide Bulk actions dropdown #1723

Open jacksontong opened 1 month ago

jacksontong commented 1 month ago

Overview

There is a case where I don't want my action to be in the dropdown, I could render and call it manually with toolbar-right-start, but the bulk actions dropdown is still showing even though there is no action in it.

Detailed explanation

The check boxes column and the dropdown are using the same logic to show/hide, so I can't hide one without the other

if ($component->bulkActionsAreEnabled() && $component->hasBulkActions()) {

}

It would be good to have a new setting to show the check boxes column without showing the bulk actions dropdown.

Notes

No response

lrljoe commented 1 month ago

Will be adding in an "alwaysHideBulkActionsDropdown" option, probably next weekend tbh!

lrljoe commented 3 weeks ago

This will be in the next release, as part of this PR #1738, I've yet to finish up the naming convention, writing tests, and updating docs, but the functionality is present. I'll finalise the naming convention this weekend.

lrljoe commented 1 day ago

So the outstanding item is docs, as there's quite a few new methods introduced to:

I've made a start on the documentation, but it may be the tail end of next week before I add in the default values etc (to match the standard for the docs)