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

New Functionality - addAdditionalSelects() #1609

Closed lrljoe closed 6 months ago

lrljoe commented 6 months ago

This adds a new method "addAdditionalSelects()" bolstering the "setAdditionalSelects()" method.

When using setAdditionalSelects(), it will always over-write/override the existing additional fields selected.

addAdditionalSelects() will instead append the fields to the "additionalSelects", allowing you to use more code re-use in your tables, using the lifecycle hooks provided. (e.g. the configured() lifecycle hook)

All Submissions:

New Feature Submissions:

  1. [X] Does your submission pass tests and did you add any new tests needed for your feature?
  2. [X] Did you update all templates (if applicable)?
  3. [X] Did you add the relevant documentation (if applicable)?
  4. [X] Did you test locally to make sure your feature works as intended?

Changes to Core Features:

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (4dd0716) 88.51% compared to head (48b2eed) 88.53%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1609 +/- ## ============================================= + Coverage 88.51% 88.53% +0.01% - Complexity 1344 1346 +2 ============================================= Files 106 106 Lines 3162 3167 +5 ============================================= + Hits 2799 2804 +5 Misses 363 363 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.