Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.26 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.26 KB

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.