Giter Site home page Giter Site logo

ixrock / mobx-react-table-grid Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 810 KB

Easy to use table grid layout ReactJS-component powered by native CSS-grid

License: MIT License

HTML 0.24% TypeScript 85.60% SCSS 14.16%
data-visualization grid-layout mobx react-components reactjs table-grid tableview css-grid

mobx-react-table-grid's People

Contributors

aleksfront avatar ixrock avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

aleksfront

mobx-react-table-grid's Issues

Add accessibility properties to table columns

We need to allow columns to be focusable with tab key. And accessibility props should be added also as well.

accessibility.with.columns.mov

This might work but need to distinct header column from "regular" ones.

Screenshot 2023-05-19 at 16 23 23

Optimize UI performance for 100k+ items in table

Current downsides: (tested in demo with 100k items)

  • freezing on initial data-processing, after that UI works fine (use workers?)
  • resizing & sorting does small freeze & could work faster (maybe use more React.memo / React.useCallback)

Custom rows virtualisation react hook

Initial work is done in: useVirtualization.tsx

Requirements:

  • easy way to handle dynamic heights of preloaded (once visible) table rows + update heights on Element/Window resize)
  • allow to get rid of extra <div>-wrapping of each table row and use all in 1 css-grid (though wrapping with display: contents would be probably better choice due handling events for the row (e.g. onClick), that way table's heading columns will always consistent with content columns even when they have dynamic size, e.g. --grid-col-size-index: max-content)
  • get rid of @tanstack/react-virtual as outdated dependency

Add ability to select/unselect multiple rows

Requirements:

  • handle data in table-state.ts
  • allow to select single table row
  • allow to select/unselect all rows (could be affected by search or other filters if any)
  • use checkbox or some row highlighting/selection/background (e.g. on whole row click)

Publish to npm

Requirements:

  • handle all peerDependencies properly, final dist/index.js should be quite small
  • properly build and export package library as common-js npm package mobx-react-table-grid (current attempt to use package via npm link mobx-react-table-grid has failed)

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.