npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

virtualized-data-table

v0.9.10-2

Published

A re-implementation of fixed-data-table using react-virtualized

Readme

Build Status

Demo

Click here to see a demo of virtualized-data-table!

Basic Usage

installation

npm install virtualized-data-table --save

API

Virtualized Data Table has an interface based on Facebook's now deprecated fixed-data-table, but improves the performance (poor performance being the main reason for its deprecation) by basing the implementation on React Virtualized <Grid>.

It supports much of, but not all, markup supported by fixed-data-table. In particular, it supports the concept of a <Table> with <Column> children that have both a header and cell renderer based on a <Cell>. Here are a few modifications to the example shown on the front page of of fixed-data-table to support virtualized-data-table:

  <VirtualizedDataTable
    rowHeight={50}
    rowsCount={rows.length}
    width={5000}
    height={5000}
    headerHeight={50}>
    <Column
      header={<Cell>Col 1</Cell>}
      cell={<Cell>Column 1 static content</Cell>}
      width={2000}
    />
    <Column
      header={<Cell>Col 2</Cell>}
      cell={<MyCustomCell mySpecialProp="column2" />}
      width={1000}
    />
    <Column
      header={<Cell>Col 3</Cell>}
      cell={({rowIndex, columnKey, ...props}) => (
        <Cell {...props}>
          Data for column 3: {rows[rowIndex][columnKey]}
        </Cell>
      )}
      width={2000}
    />
  </Table>

It should also support Cell classes built for use with fixed-data-table, with a few modifications (see below).

This package could be a replacement for fixed-data-table in your project that could provide better performance than fixed-data-table with minimal code changes. That was the motivation for its creation. However, this package is not guaranteed to handle all possible use cases of fixed-data-table, so if this package doesn't provide support for your use case, feel free to add support for it!

Porting from fixed-data-table

In order to port your tables from fixed-data-table, you just need to add a few things:

  1. You need to ensure each column has a 'columnKey' string property
  2. You need to implement a rowGetter function as a property of your root Table which is passed a rowIndex and returns the data for that entire row.
  3. Your custom cells or cell handlers will be passed an object containing 'rowData' (obtained from rowGetter), as well as the rowIndex and columnKey where the cell is being rendered

That should be it! Once you change your table and cell classes to handle columnKeys and rowData, everything should "just work."

Additional features

Some features were implemented beyond those which were supported by fixed-data-table (documentation to be provided soon):

  1. Table column resizability
  2. Row/column selectability
  3. Group headers (another header that can span multiple columns)
  4. Copy/paste support (Google sheets-esque)
  5. Ability to freeze lefthand columns and scroll other columns

(c)2017 Raycom Media, Inc. Released under the MIT license.

MIT