laravel-datatables icon indicating copy to clipboard operation
laravel-datatables copied to clipboard

Add sub headers

Open PhHitachi opened this issue 3 years ago • 1 comments

Hi, how can i add sub headers like this if possible

image

PhHitachi avatar Jul 24 '22 08:07 PhHitachi

Using the html builder? Currently not possible but you can always use the manual html to set the headers. Just be sure to use the correct table id

// html builder
public function html() {
  return $this->builder()->setTableId('users-table')...
}

// view.blade.php

<table id="users-table">
<thead>
-- your th here
</thead>
</table>

@push('scripts')
  {{ $dataTable->scripts() }}
@endpush

yajra avatar Jul 26 '22 04:07 yajra

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 08 '22 02:10 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Oct 16 '22 00:10 github-actions[bot]