This plugin is designed to make HTML tables fully responsive by wrapping information into a single column at a specified window width. It is meant to be very generic in nature so can be easily applied to just about any kind of data set, whether very simple or very complex, and can even be applied to multiple tables on a single page.
Files Required —
- flexi_tables.css
- flexi_tables.js
-
In the `````` tag add a data attribute of flexi-table. ⇢ ```
``` - To define custom headers for the collapsed table, give the flexi-table data tag comma deliniated values based on what ```
- To add deliniators between ```
- .flexiTableTitle (The
<th>
for the sub-tables created when the table is collapsed.) - .flexiTableDeliniator (A
<span>
surrounding the spacers between content in the custom header, these can be empty.) - .flexiTableLabel (
<th>
tags with display:block and float:left to act as a<td>
when the table is collapsed.) - ie8 support (intent is for the plugin to degrade gracefully)
- fixed headers for full width and collapsed views
- data shuffling / content sorting for full width and collapsed views
``` html content you want to appear in each sub-table. (i.e. if you want content from the first and second ``` | ``` element then ---> `````` [Note that these are based on array index
values so they start at '0'])
|