Make Table Scroll X on card in metronic vue theme
Is there a way to make a table scroll X in Metronic 8 Vue Theme .
Replies (1)
Hi,
If you are using our KTDatatable component, then by default we do not support a scroll behavior in our table. But you can make a table scrollable using CSS.
Firstly, you can add the attributes below to display all your elements in a table and hide items per page dropdown.
:items-per-page="tableData.length"
:items-per-page-dropdown-enabled="false"
For all available KTDatatable component properties check out our documentation.
https://preview.keenthemes.com/metronic8/vue/docs/#/kt-datatables
Then you can add the CSS code below to make the table scrollable.
.dataTables_wrapper .table-responsive {
position: relative;
overflow: auto;
max-height: 500px;
width: 100%;
}
If you are using our solution from HTML version then you can check the Vertical Scroll example in our doc.
https://preview.keenthemes.com/html/metronic/docs/general/datatables/basic#vertical-scroll
Regards,
Lauris Stepanovs,
Keenthemes Support Team