bootstrap-table hide column in mobile view

Nikunj Thakkar picture Nikunj Thakkar · Jul 5, 2016 · Viewed 23k times · Source

I have a checkbox column which should only be visible on desktop and not on Mobile or Tabs.

There are no options available in the documentation to hide/show any columns based on the devise.

Can we do this?

Answer

Klaus picture Klaus · Jan 10, 2019

This is now (4.2) done as explained here: https://getbootstrap.com/docs/4.1/utilities/display/#hiding-elements

For table cells you have to use e.g.

<th class="d-none d-lg-table-cell">

This will display the table cell only on large displays an upwards.