Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Tablesaw | 5,520 | 95 | 7 | 5 months ago | 54 | March 19, 2019 | mit | JavaScript | ||
A group of plugins for responsive tables. | ||||||||||
Rwd Table Patterns | 751 | 1 | 14 days ago | 14 | July 05, 2022 | 11 | mit | JavaScript | ||
This is an awesome solution for responsive tables with complex data. | ||||||||||
React Super Responsive Table | 397 | 32 | 10 | 2 days ago | 64 | June 06, 2022 | 3 | mit | JavaScript | |
Turn the tables on unresponsive data! | ||||||||||
Ember Light Table | 313 | 70 | 15 | 2 months ago | 61 | July 29, 2020 | 109 | mit | JavaScript | |
Lightweight, contextual component based table for Ember | ||||||||||
Datatables Responsive | 219 | 6 | 7 years ago | February 22, 2021 | 18 | other | JavaScript | |||
Responsive Datatables Helper | ||||||||||
Restable | 186 | 1 | a year ago | June 25, 2015 | JavaScript | |||||
🌈 jQuery plugin that makes tables responsive converting them to HTML lists on small viewports. | ||||||||||
React Sticky Table | 178 | 33 | 1 | 2 years ago | 42 | October 17, 2020 | 9 | mit | JavaScript | |
Responsive and dynamically-sized fixed headers and columns for tables | ||||||||||
Stickers | 136 | 2 months ago | 1 | mit | Go | |||||
Building blocks for charmbracelet/lipgloss 👾 | ||||||||||
Responsive | 135 | 2 | 2 | 4 days ago | 8 | October 25, 2018 | 25 | other | JavaScript | |
Responsive extension for DataTables, providing support for complex tables on all device screen sizes | ||||||||||
Basictable | 115 | 1 | 13 days ago | 6 | January 30, 2021 | 7 | mit | JavaScript | ||
Basic Table jQuery or Vanilla JS plugin for simple responsive tables. |
jQuery ReStable is a very simple and lightweight (~1Kb) jQuery plugin that make tables responsive making them collapse into ul lists.You can find some examples in the included demo.
To use it you just have to include jQuery and a copy of the plugin in your head or footer:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="jquery.restable.min.js"></script>
<link rel="stylesheet" href="jquery.restable.min.css">
Let's say this is your table:
<table class="mytable">
<thead>
<tr>
<td>Period</td>
<td>Full Board</td>
<td>Half Board</td>
<td>Bed and Breakfast</td>
</tr>
</thead>
<tbody>
<tr>
<td>01/10/12 - 02/10/12</td>
<td>20 €</td>
<td>30 €</td>
<td>40 €</td>
</tr>
<tr>
<td>03/10/12 - 04/10/12</td>
<td>40 €</td>
<td>50 €</td>
<td>60 €</td>
</tr>
<tr>
<td>05/10/12 - 06/10/12</td>
<td>70 €</td>
<td>80 €</td>
<td>90 €</td>
</tr>
</tbody>
</table>
Now the only thing to do is to trigger the action with:
$(document).ready(function () {
$.ReStable();
});
This will target automatically all the tables in the page but you can, off course, target one or more elements with:
$(document).ready(function () {
$('.mytable').ReStable();
});
If you need more control here's the plugin settings:
$('.mytable').ReStable({
rowHeaders: true, // Table has row headers?
maxWidth: 480, // Size to which the table become responsive
keepHtml: false // Keep the html content of cells
});
ReStable has been made by me. You can contact me at [email protected] or twitter for any issue or feature request.