Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amalfra/fluid-table
A tiny library to create responsive HTML tables
https://github.com/amalfra/fluid-table
css html responsive table
Last synced: 19 days ago
JSON representation
A tiny library to create responsive HTML tables
- Host: GitHub
- URL: https://github.com/amalfra/fluid-table
- Owner: amalfra
- License: mit
- Created: 2016-12-19T11:00:52.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2022-11-11T14:52:49.000Z (about 2 years ago)
- Last Synced: 2024-10-12T12:25:55.987Z (about 1 month ago)
- Topics: css, html, responsive, table
- Language: CSS
- Homepage:
- Size: 146 KB
- Stars: 24
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fluid-table
A tiny library to create responsive HTML tables
[![npm version](https://badge.fury.io/js/fluid-table.svg)](https://badge.fury.io/js/fluid-table)
### table on large screens
![screenshot](https://raw.githubusercontent.com/amalfra/fluid-table/master/examples/large-screenshot.png)
### table on small screens
![screenshot](https://raw.githubusercontent.com/amalfra/fluid-table/master/examples/small-screenshot.png)## Installation
```sh
npm install fluid-table
```Or download/clone the repo.
## Usage
Just apply `fluid-table` css class to your table element. Your table columns will be converted to rows in smaller displays(< 768px).
To each td element add `data-label` attribute whose value should be the column's heading.## Development
Questions, problems or suggestions? Please post them on the [issue tracker](https://github.com/amalfra/fluid-table/issues).
You can contribute changes by forking the project and submitting a pull request. Feel free to contribute :heart_eyes:
UNDER MIT LICENSE
=================The MIT License (MIT)
Copyright (c) 2016 Amal Francis
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.