npm install react-filter-table This is a table component made with ReactJS.
It is made to allow the user to pick out subsets of the table's data to highlight or display by themselves.
var FilterTable = require('react-filter-table');
var App = React.createClass({
render: function() {
return (
Props:
subset - an array representing a subset of an array of attributes.
functionality - "subset" or "highlight", defaults to "subset"
getColHeader - a callback which returns the header of a column
getRange - a callback which returns the min and max of an array of attributes
data - data inputted by user: [{attr1: int, attr2: int,attr3: int}, ...]
titles - array of title data: [ {title: "attr1", display: "nice title that you want to display"}, ...], if no titles.display, uses titles.titles. title attribute must always match corresponding attribute in data