majorye / react-table-view

react-table-view is a simple table-view component using react.js.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-table-view

react-table-view is a simple table-view component using react.js.

Installation

npm install react-table-view --save

Usage

var React = require('react');
var TableView = require('../jsx/table-view.jsx');

// must ensure all of your fields have values or react table view will not render
var DATA = [ 
  { id: 0, make: 'Honda', model: 'NSX', year: '1997'},
  { id: 1, make: 'Toyota', model: 'Supra', year: '1996'},
  { id: 2, make: 'Nissan', model: '300ZX', year: '1998'}
]

React.render(
	React.createElement(
		TableView, 
		{data: DATA}
	),
	document.getElementById("container")
);

Styles

react-table-view can be used with your own custom styles. A minimal table-view.css style sheet is included as a guide.

Development

Initial set up, run:

npm install

For watch on files, live reload, JSX transpiling and browserify, run:

gulp

License

(The MIT License)

Copyright (c) 2015 isekivacenz <stevenisekimartin@gmail.com>

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.

About

react-table-view is a simple table-view component using react.js.


Languages

Language:JavaScript 99.9%Language:CSS 0.1%Language:HTML 0.0%