Responsive not working in mobile view - missing some columns
Responsive not working in mobile view - missing some columns
![cratag](https://secure.gravatar.com/avatar/eab0800476937fd1c159b9ec9e978fcd/?default=https%3A%2F%2Fvanillicon.com%2Feab0800476937fd1c159b9ec9e978fcd_200.png&rating=g&size=120)
I have a rails app that uses mobile view as well. I've read adding responsive: true
would make it fit in the view, but it doesn't. My table has 4 rows, and shows only two of them in mobile - and I cant scroll right to see the whole table.
<table class="table table-sm table-dashboard data-table no-wrap mb-0 fs--1 w-100" id="myTable" data-gene="gene">
...
</table>
$('#myTable').DataTable({
responsive: true
});
PC view:
Mobile view:
No errors in the console
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Are you including the Responsive extension js file?
https://datatables.net/extensions/responsive/
Oops, I missed that, sorry. Thank you