rappasoft / laravel-livewire-tables

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

v3 - Add option to hide Column Header #1512

Closed lrljoe closed 10 months ago

lrljoe commented 11 months ago

Adds two new methods for a Column, with respect to the Label/TH

Hiding Column Label

Labels are visible by default, but should you wish to hide the label from the table header, without impacting on wider table behaviour, you may implement the following method:

Column::make('Name')
    ->setColumnLabelStatusDisabled()

Displaying Column Label

Labels are visible by default, but should you wish to override a previous "hideColumnLabel()", you may implement the below method:

Column::make('Name')
    ->setColumnLabelStatusEnabled()

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 11 months ago

Codecov Report

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

Comparison is base (5107ce9) 88.95% compared to head (54fc0e1) 88.99%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1512 +/- ## ============================================= + Coverage 88.95% 88.99% +0.03% - Complexity 1264 1268 +4 ============================================= Files 96 96 Lines 2998 3008 +10 ============================================= + Hits 2667 2677 +10 Misses 331 331 ```

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