ReactDataTables A simple and easy to use Sortable table component built with jQuery Datables, it was built as a simple easy to use option that can be quickly customized.
Via NPM
npm i @shawnsandy/rts-datatables
var React = require("react");
var DataTables = require('rts-datatables');
var cols = ['ID','First Name','Last Name'];
var colsTables = ['id','first_name','last_name'];
React.render(<DataTables dataUrl="data/users.json" cols={cols} colTables={colsTables} />, document.getElementById('component'));
Via GitHub Download
- Download the latest release herepete (zip/tarball)
- Submit an issue
- Fork the repository
- Create a dedicated branch (never ever work in
master
) - Fix bugs or implement features
- Always write tests
0.2.0
- Updated Readme, fixed Typos
- added tableCaption prop
- Removed webpack from NPM (run) scripts
0.1.0
Beta release
- Refactored the component(s) structure
- Added props cols / colTables
- Propotypes / Validation
- cols : //table cols
- colTables: // the table names for cols
- dataUrl : // url of your json data
0.0.1
- Development started
- Add error checking
- DataTables options
- Add better styling options / props
The MIT License (MIT)
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.