Socket
Socket
Sign inDemoInstall

react-table-sorter

Package Overview
Dependencies
44
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-table-sorter

A sortable table component using [Facebook's React](http://facebook.github.io/react/).


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
13.7 MB
Created
Weekly downloads
 

Readme

Source

A React.js Table Sorter Component

A sortable table component using Facebook's React. Build out as a reusable component from the demo made by bgerm.

View the demo repo.

View the running demo.

Features:

  • Remote data loading
  • Sortable columns
  • Filterable columns
  • Repeatable headers

Usage

Sortable Table takes two arguments, source and config. source is a string designating the path to a JSON formatted data source and config is a JavaScript object containing information about the structure of the table.

Example

var CONFIG = {
  sort: { column: "col2", order: "desc" },
  columns: {
    col1: { name: "Col1", filterText: "", defaultSortOrder: "desc"},
    col2: { name: "Col2", filterText: "", defaultSortOrder: "desc"},
    col3: { name: "Col3", filterText: "", defaultSortOrder: "desc"}
  }
};

React.renderComponent(<TableSorter dataSource="/api/data.json" config={CONFIG} headerRepeat="5" />, document.getElementById("table-sorter"));

Running the Demo

lute is a quick solution.

npm install -g lute
lute

And now view at: http://localhost:8080/example.

FAQs

Last updated on 15 Jan 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc