GithubHelp home page GithubHelp logo

doc22940 / react-table-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from decathlon/react-table

1.0 1.0 0.0 2.11 MB

React components for efficiently rendering large tabular data

License: Apache License 2.0

JavaScript 1.57% TypeScript 94.10% CSS 4.33%

react-table-1's Introduction

@decathlon/react-table

React components for efficiently rendering large tabular data

A table with 15 000 rows and 1 000 columns (with sub rows, fixed rows and fixed columns)

A table with custom right click menu

Storybook

Installing

npm install -S @decathlon/react-table

Usage

import { Table } from "@decathlon/react-table";
import "@decathlon/react-table/dist/style/index.css";

 const rows = [
    {
      id: "header",
      isHeader: true,
      cells: [
        {
          id: "wawoo",
          value: "Wawooo!"
        },
        ...
      ]
    },
    {
      id: "row1",
      cells: [
        {
          id: "react",
          value: "React"
        },
        ...
      ]
    },
    ...
   ];

function MyComponent() {
  return (
    <Table
      id="table-id"
      rows={rows}
      columns={{ 0: { style: { justifyContent: "left" }, size: 200 } }}
      isVirtualized
      virtualizerProps={{
        fixedRows: [0],
        fixedColumns: [0],
        height: 500,
        width: 1000
      }}
    />
  );
}

Getting Started (Devs)

git clone ...
cd react-table
npm ci
npm run storybook

๐Ÿš€ Storybook ready at http://localhost:9001/

Running the tests

npm run test
npm run lint

Contributing

PRs are welcome! You noticed a bug, a possible improvement or whatever? Any help is always appreciated, so don't hesitate opening one!

Be sure to check out the contributing guidelines to fasten up the merging process.

Active authors

See also the list of contributors who participated in this project.

License

This project is licensed under the Apache-2.0 License - see the LICENSE.md file for details

react-table-1's People

Contributors

amen-souissi avatar corpsyal avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.