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 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-touchable-tabular

v1.3.9

Published

touchable table view component for React

Downloads

9

Readme

React Touchable Tabular

NPM version Build status Dependency Status Downloads

A React Component to used to view tabular data based on facebook/fixed-data-table.

Installation

$ npm install react-touchable-tabular --save

Requirement

Before using this module, please make sure you have installed manually the following modules:

  • react
  • react-dom
  • momentjs namely moment from NPM

Note: The above 3 modules is peer dependencies, as well as the webpack externals to reduce the generated bundle size.

Usage

import React from 'react';
import Tabular from 'react-touchable-tabular';

class ExampleApp extends React.Component {
  async getDataSource() {
    return await getList();
  }
  render() {
    return (
      <Tabular getDataSource={this.getDataSource}
        tableHeight={1000}
        tableWidth={800}
        columns={[
          {
            title: 'first name',
            key: 'name.first'
          },
          {
            title: 'last name',
            key: 'name.last'
          },
          {
            title: 'created',
            key: 'created',
            type: 'date'
          }
        ]}
      />
    );
  }
}

Why not fixed-data-table directly?

We build the following features based on fixed-data-table:

  • provides touchable to view your data on iPad, Android Pad devices
  • provides sortable column by default and supports dot namespace for sorting key
  • provides an array property columns to render your column data with less code
  • provides a property type
    • if type is "date", this component will format the date by using momentjs
    • if type is "bool", this component will format the value to Yes or No
  • with auto computation on the width values of every columns based on the total width.

License

MIT