Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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 .


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(