Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tpatel/arraytotable.js
Convert a json array to a sortable html table.
https://github.com/tpatel/arraytotable.js
Last synced: about 2 months ago
JSON representation
Convert a json array to a sortable html table.
- Host: GitHub
- URL: https://github.com/tpatel/arraytotable.js
- Owner: tpatel
- License: mit
- Created: 2013-04-19T20:51:02.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-04-19T21:43:35.000Z (over 11 years ago)
- Last Synced: 2024-04-14T14:52:26.577Z (9 months ago)
- Language: JavaScript
- Homepage: http://tpatel.github.io/ArrayToTable.js/
- Size: 137 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ArrayToTable.js
Convert a json array to a sortable html table.
## Usage
Download the [script from GitHub](https://raw.github.com/tpatel/ArrayToTable.js/master/lib/arrayToTable.js).
Include the script in your html page.
``````
Create an empty table that will contain the data.
``````
Launch the rendering with the following lines.
```var myArray = [{name:'Thibaut', age:22, randomNumber:0.314}, {name:'Joe', age:43, randomNumber:0.256}, {name:'Jane', age:27, randomNumber:0.1337}];
arrayToTable.setTable('tableID', myArray);```
## License
MIT