Skip to content

mukuljainx/smart-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 2, 2023
1690182 Β· Feb 2, 2023
Aug 1, 2021
Feb 2, 2023
Jul 20, 2021
Jul 6, 2021
Jul 20, 2021
Jul 20, 2021
Jul 20, 2021
Jul 20, 2021
Jan 19, 2020
Aug 1, 2021
Feb 2, 2023
Feb 2, 2023
Jul 11, 2021

Repository files navigation

Smart Grid

Features

  • πŸͺ„ Virtualization
  • 🎲 Dynamic Height
  • πŸ“Œ Pinned Columns (Synced Multi Grid)
  • ∞ Infinite Scroll
  • πŸ›  Highly configurable
  • πŸ’ͺ TypeScript
  • βš› Pretty small
  • πŸš€ Faster and lighter than V1
  • 🎁 Out of the box Grid, just provide schema and data (releasing soon)
  • 🀝 Backward compatibility (TBA)
  • and much more πŸ”₯

Usage

npm i && npm start

const { onScroll, rowRenderer } = useGrid({
  data: state.loading ? state.data.concat([null, null]) : state.data,
  rowHeight: rowHeight || 39,
  buffer,
  limit,
  loadMore: getData,
  virtualized,
});

For complete Documentation please visit: https://smartgrid.mukulja.in/

Development Guide

This project has been divided in 3 parts,

  1. Main package: src.
  2. Documentation: docs.
  3. Examples: examples, it contains various examples.

Running main package watch mode

npm i && npm start

This will build files in watch mode at examples/grid

Running dev server

To develope choose a type of example or copy any example and you can start there.

cd examples/example-name
npm i
npm start

For development purpose you can import smart grid apis from examples/grid.

Docs

cd docs
npm i
npm start