Control styling of table header
slash-aka-eric opened this issue · 3 comments
slash-aka-eric commented
How do I control the styling of table header using this library?
Example:
<table>
<thead class="bg-200 text-900">
...
</thead>
</table>
yajra commented
Atm, there is no way to add a thread class via the builder. However, there is a pending PR that may solve this.
For a workaround, you can still use the standard table markup. Just make sure you are using the correct table id.
view:
<table id="users-table">
<thead class="bg-200 text-900">
...
</thead>
</table>
datatable:
public function html(): HtmlBuilder
{
return $this->builder()
->setTableId('users-table')
github-actions commented
This issue is stale because it has been open for 30 days with no activity.
github-actions commented
This issue was closed because it has been inactive for 7 days since being marked as stale.