File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
bootstrap-4/components/table
bootstrap-5/components/table
tailwind/components/table Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
@props ([' customSecondaryHeader' => false , ' useHeaderAsFooter' => false , ' customFooter' => false ] )
2
2
3
3
<div class =" {{ $this -> responsive ? ' table-responsive' : ' ' } }" >
4
- <table {{ $attributes -> except (' wire:sortable' ) } } class =" table table-striped" >
4
+ <table {{ $attributes -> except ([ ' wire:sortable' , ' class ' ] ) } } class =" {{ trim ( $attributes -> get ( " class " )) ?: ' table table-striped' } } " >
5
5
<thead >
6
6
<tr >
7
7
{{ $head } }
Original file line number Diff line number Diff line change 1
1
@props ([' customSecondaryHeader' => false , ' useHeaderAsFooter' => false , ' customFooter' => false ] )
2
2
3
3
<div class =" {{ $this -> responsive ? ' table-responsive' : ' ' } }" >
4
- <table {{ $attributes -> except (' wire:sortable' ) } } class =" table table-striped" >
4
+ @dump ($attributes )
5
+ <table {{ $attributes -> except ([' wire:sortable' ,' class' ]) } } class =" {{ trim ($attributes -> get (" class" )) ?: ' table table-striped' } }" >
5
6
<thead >
6
7
<tr >
7
8
{{ $head } }
Original file line number Diff line number Diff line change 1
1
@props ([' customSecondaryHeader' => false , ' useHeaderAsFooter' => false , ' customFooter' => false ] )
2
2
3
3
<div class =" align-middle min-w-full overflow-x-auto shadow overflow-hidden rounded-none md:rounded-lg" >
4
- <table {{ $attributes -> except (' wire:sortable' ) } } class =" min-w-full divide-y divide-gray-200 dark:divide-none" >
4
+ <table {{ $attributes -> except ([ ' wire:sortable' , ' class ' ] ) } } class =" {{ trim ( $attributes -> get ( " class " )) ?: ' min-w-full divide-y divide-gray-200 dark:divide-none' } } " >
5
5
<thead >
6
6
<tr >
7
7
{{ $head } }
You can’t perform that action at this time.
0 commit comments