Skip to content

michaelwestphal/responsive-fixed-data-table

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

responsive-fixed-data-table

Responsive wrapper for Facebook's Fixed-Data-Table grids

Installation

This module is available as an npm package.

npm install [--save] responsive-fixed-data-table

Usage

var React = require('react');
var Column = require('fixed-data-table').Column;
var ResponsiveFixedDataTable = require('responsive-fixed-data-table');

var ResponsiveTable = React.createClass({
  render: function() {
    return (
      <ResponsiveFixedDataTable {...tableProps}>
        <Column {...columnsProps} />
      </ResponsiveFixedDataTable>
    );
  }
});

module.exports = ResponsiveTable;

All passed props will be passed to the underlying FixedDataTable component. Please check FixedDataTable docs for a list of available options.
Width and height will be overriden to take all the available space of its parent container.

Additional configuration

containerStyle {Object}: Additional styles to be set on the container div.
refreshRate {Number}: Time in milliseconds to debounce the resize handler.

About

Responsive wrapper for Facebook's Fixed-Data-Table grids

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.0%
  • HTML 4.0%