Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Vue Table | 1,807 | 91 | 5 years ago | 25 | February 02, 2017 | 64 | mit | Vue | ||
data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component. | ||||||||||
Json To Html Table | 354 | 3 years ago | 2 | August 07, 2012 | 7 | JavaScript | ||||
Simple Json to standard HTML table converter in fastest way | ||||||||||
Vanilla Datatables | 256 | 2 | 4 years ago | 69 | September 25, 2018 | 33 | mit | JavaScript | ||
A lightweight, dependency-free javascript HTML table plugin | ||||||||||
Tablefilter | 221 | 9 | 1 | 3 years ago | 263 | July 22, 2020 | 29 | mit | HTML | |
A Javascript library making HTML tables filterable and a bit more :) | ||||||||||
Json2html | 165 | 191 | 26 | 2 years ago | 13 | July 03, 2019 | 13 | mit | Python | |
🐍 Python module for converting complex JSON to HTML Table representation | ||||||||||
Vuejs Smart Table | 152 | 4 | 1 | a year ago | 27 | February 09, 2022 | 25 | mit | Vue | |
Simple yet powerful Data Table for Vue with vanilla HTML structure | ||||||||||
Filterable | 108 | 7 years ago | June 11, 2014 | 5 | mit | JavaScript | ||||
UNSUPPORTED: Bootstrap themed per-column filter for an HTML table | ||||||||||
Texreg | 99 | 5 days ago | 3 | April 07, 2022 | 24 | R | ||||
Conversion of R Regression Output to LaTeX or HTML Tables | ||||||||||
Syscalls Table | 90 | 5 days ago | 4 | mit | Jinja | |||||
Simple tool to generate HTML table of Linux system calls on different architectures | ||||||||||
Livewire Smart Table | 88 | a month ago | 6 | February 25, 2022 | mit | PHP | ||||
An advanced datatable component for Laravel Livewire. |
Make your HTML tables look great on every device. Compatible with AngularJS 1.3.4+.
Currently, browsers for mobile devices like smartphones doesn't do anything to have a proper presentation of tables, and then scrollbars will show up and ruin your design.
In the search of a solution to this problem I have found many different approaches. Some of them still rely on horizontal scrollbars. While I believe this layout could be useful for some use cases, I felt that a default solution should avoid horizontal scrollbars entirely. Then I came up with this highly reusable directive.
All this work is based on the following assumptions:
<table wt-responsive-table>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th>Column 4</th>
</tr>
<tr>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
</tr>
<tr>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
</tr>
<tr>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
</tr>
</table>
npm install --save angular-responsive-tables
bower install angular-responsive-tables --save
<link rel="stylesheet" href="release/angular-responsive-tables.min.css">
<script type="text/javascript" src="release/angular-responsive-tables.min.js"></script>
var app = angular.module('app', ['wt.responsive']);
It's possible to override a header with a data-title
attribute:
<tr>
<td data-title="column 1">tom</td>
<td data-title="column 2">jerry</td>
</tr>
This is by design. To avoid expensive digest cycles only the content from the first digest cycle is used. There are no watchers being setup.
When loading column names with an asynchronous task, that is, column names are not available when first compiling the table element, rows in responsive mode won't have headers even after the task completes.
To avoid this problem, use an ng-if
to conditionally present the element on screen.
<table wt-responsive-table ng-if="columnNames && columnNames.length">
Because IE9 doesn't handle correctly a display
CSS rule for <td>
, if you need to support it, you can use the following style, only for IE9:
<!--[if IE 9]>
<style>
/* rules for IE9 only */
.responsive {
overflow: hidden;
}
.responsive td:nth-child(odd), .responsive td:nth-child(even) {
float: left;
width: 100%;
}
</style>
<![endif]-->
CSS based on original work by Chris Coyier (http://css-tricks.com/responsive-data-tables/). In this article, he covers approaches to responsive tables. I modified it to work around CSS specificity and to keep things DRY.
MIT