https://github.com/boweihan/cubiclejs
multidimensional table rendering library
https://github.com/boweihan/cubiclejs
Last synced: 3 months ago
JSON representation
multidimensional table rendering library
- Host: GitHub
- URL: https://github.com/boweihan/cubiclejs
- Owner: boweihan
- Created: 2017-06-09T01:07:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-09T01:15:19.000Z (about 8 years ago)
- Last Synced: 2025-01-31T09:45:44.361Z (4 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cubicleJS
multidimensional table rendering libraryThis library can be used to help draw multidimensional tables. If you aren't sure what a multidimensional table is feel free to check out:
https://en.wikipedia.org/wiki/Table_(information)#Multi-dimensional_table
http://www.directionsmag.com/entry/creating-and-manipulating-multidimensional-tables-with-locational-data-usin/123565To use the library, simple import cubicle.js as an es6 module along with cubicle.css. You can then create a new cubicle object and pass it data as so:
**this.cubicle = new Cubicle();**
**this.cubicle.setRows(this.mockData.rows1());**
**this.cubicle.setColumns(this.mockData.cols1());**
**this.cubicle.setData(this.mockData.data1());**
**let html = this.cubicle.getTable();**
Check out cubicle.data.js for examples on how to pass in data to the table. The library returns a string of html at the moment that is perfect for frameworks such as React.