New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-filter-table

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-filter-table

react-filter-table

latest
npmnpm
Version
1.0.3
Version published
Weekly downloads
1
-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

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 (


<FilterTable
subset={[1,5]}
functionality={"subset"}
getColHeader={this.printHeader}
getRange={this.showRange}
data={[{"cats/house":10, "kids/house":3},{"cat/house":1, "kids/house":0}]}
titles={[{title:"cats/house", display: null},{title:"kids/house", display:null}]}
/>

);
},
});

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

FAQs

Package last updated on 07 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts