reactive-table
reactive-table copied to clipboard
table-responsive not being respected
Hi, First of all, I LOVE this package. Using it a lot.
I've run into an issue with responsive use. It seems like class="table table-responsive ..." is ignoring the table-responsive attribute completely. Has anyone else seen this?
If I surround my reactiveTable template invocation with a
My bootstrap/CSS knowledge is not deep, suggestions appreciated! Thx
The problem is that bootstrap's table-responsive class is supposed to go on a div that wraps the table element, and the class option will put it on the table element itself. reactive-table doesn't put a div around the table element, but you might be able to do something like $("table.reactive-table").wrap("<div class='table-responsive'></div>"); when the template is rendered to add one.
Glad you like the package :)