Hi team ,
How to apply fixed table header in metronic kt-datatables:
component url : https://preview.keenthemes.com/metronic8/vue/docs/#/kt-datatables.
i want to make tbody scrollable with fixed thead.
I am looking forward to the solution and right approach.
Hi Abhishek!
At the moment our component doesn't support such functionality. We will consider adding such functionality in upcoming releases.
For now, to implement it you can follow the steps below:
:rows-per-page="tableData.length"
<style>
.table-responsive {
overflow-y: auto;
height: 110px;
}
.table-responsive thead tr {
position: sticky;
top: 0;
}
table {
border-collapse: collapse;
width: 100%;
}
th,
td {
padding: 8px 15px;
border: 2px solid #529432;
}
th {
background: #abdd93;
}
</style>