New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pui-react-sortable-table

Package Overview
Dependencies
Maintainers
6
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pui-react-sortable-table

A React component that provides a table that can be sorted by column

  • 2.0.0-alpha.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
decreased by-58.62%
Maintainers
6
Weekly downloads
 
Created
Source

pui-react-sortable-table

A React component that provides a table that can be sorted by column

Pivotal UI React (GitHub, npm) is a collection of React components for rapidly building and prototyping UIs.

This component requires React v0.13

See the Pivotal UI Styleguide for fully rendered examples.

Components

TableHeader

Wrapper for a th

Properties
  • sortable
    • boolean: (defaults to false) indicates whether the table can be sorted by this column;

TableCell

Wrapper for a td

TableRow

Wrapper for a tr

SortableTable

A table that can be sorted by column

var {SortableTable, TableHeader, TableRow, TableCell} = require('pui-react-sortable-table');
var MyComponent = React.createClass({
  render() {
    var headers = [
      <TableHeader sortable={true}>c1</TableHeader>,
      <TableHeader sortable={true}>c2</TableHeader>,
     ];
    var data = [
      {c1: 'yes', c2: 'foo'},
      {c1: 'no', c2: 'bar'}
    ];
    return <SortableTable headers={headers}>
      {sortTableData.map(function(datum, key) {
        return (
          <TableRow key={key}>
            <TableCell>{datum.c1}</TableCell>
            <TableCell>{datum.c2}</TableCell>
          </TableRow>
        );
      })}
    </SortableTable>;
  }
});
Properties
  • headers
    • Array<Object>: A list of TableHeader components

(c) Copyright 2015 Pivotal Software, Inc. All Rights Reserved.

Keywords

FAQs

Package last updated on 03 Sep 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc