Topic: Sticky table header
<table class="table table-hover mt-4">
<thead class="sticky">
<tr>
<th>Canal</th>
<th>Pedido</th>
<th>Data</th>
<th>Cliente</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let pedido of pedidos">
<th scope="row">{{pedido.pedido | canal}}</th>
<td>{{pedido.pedido | pedido}}</td>
<td>{{pedido.data}}</td>
<td>{{pedido.cliente.nome}}</td>
</tr>
</tbody>
</table>
$('.sticky').sticky({
topSpacing: 90
,zIndex: 2
});
Edyta Dabrowska answered 8 years ago
napsys pro commented 7 years ago
How can I make it work for this example? https://mdbootstrap.com/content/tables/ -----> "Table with panel" Thank you!.Davinder Virk commented 6 years ago
I have same issue. With the example you provided my table-responsive really messes up alignment, column spacing, and takes away horizontal scrolling. Please help
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No