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 320 forks source link

[Feature Request]: Visual customizations of the Bulk Actions Dropdown #1566

Closed zokistale closed 6 months ago

zokistale commented 7 months ago

Overview

Add ability to the Bulk Actions Dropdown to:

  1. Set the label as HTML instead of just plain text (e.g. it will allow us to add icons).
  2. Define a horizontal divider between actions.

Detailed explanation

We have large bulk actions drop-downs with e.g. 9 actions. We'd like to visually enhance them by grouping them using a divider and by adding SVG icons. For example, in the screenshot below, we'd like to be able to put dividers between each 3 actions.

Thank you for your great work, by the way.

Notes

bulk-actions-dropdown

lrljoe commented 7 months ago

Replacing the current dropdowns with more modern editions is currently on the roadmap happily.

The recent version added in an ability for a confirmation modal, and the plan will be to add in more customisations, allowing for use of HTML strings in the display name for the bulk action.

Just having to be conscious of adding new capabilities without impacting existing, so it'll involve some new methods to achieve this.

Then v4 will be when the approach gets overhauled completely

Good idea though, appreciate the suggestion

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.