All Projects → glideapps → Glide Data Grid

glideapps / Glide Data Grid

Licence: mit
A high-performance React grid component, with rich rendering and first-class TypeScript support.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Glide Data Grid

Rows
A common, beautiful interface to tabular data, no matter the format
Stars: ✭ 739 (+98.12%)
Mutual labels:  data, table
Tabulator
Interactive Tables and Data Grids for JavaScript
Stars: ✭ 4,329 (+1060.59%)
Mutual labels:  data, table
Blazortable
Blazor Table Component with Sorting, Paging and Filtering
Stars: ✭ 249 (-33.24%)
Mutual labels:  data, table
Sheetjs
📗 SheetJS Community Edition -- Spreadsheet Data Toolkit
Stars: ✭ 28,479 (+7535.12%)
Mutual labels:  data, table
Tksheet
Python 3.6+ tkinter table widget for displaying tabular data
Stars: ✭ 86 (-76.94%)
Mutual labels:  data, table
Vue Table Dynamic
🎉 A dynamic table with sorting, filtering, editing, pagination, multiple select, etc.
Stars: ✭ 106 (-71.58%)
Mutual labels:  data, table
Arquero
Query processing and transformation of array-backed data tables.
Stars: ✭ 384 (+2.95%)
Mutual labels:  data, table
Reactable
Interactive data tables for R
Stars: ✭ 345 (-7.51%)
Mutual labels:  table
Stm32 Usart Uart Dma Rx Tx
STM32 examples for USART using DMA for efficient RX and TX transmission
Stars: ✭ 372 (-0.27%)
Mutual labels:  data
Anon
A UNIX Command To Anonymise Data
Stars: ✭ 341 (-8.58%)
Mutual labels:  data
Morphism
⚡ Type-safe data transformer for JavaScript, TypeScript & Node.js.
Stars: ✭ 336 (-9.92%)
Mutual labels:  data
Django Smuggler
Django Smuggler is a pluggable application for Django Web Framework that helps you to import/export fixtures via the automatically-generated administration interface.
Stars: ✭ 350 (-6.17%)
Mutual labels:  data
Keypathkit
KeyPathKit is a library that provides the standard functions to manipulate data along with a call-syntax that relies on typed keypaths to make the call sites as short and clean as possible.
Stars: ✭ 376 (+0.8%)
Mutual labels:  data
J
❌ Multi-format spreadsheet CLI (now merged in http://github.com/sheetjs/js-xlsx )
Stars: ✭ 343 (-8.04%)
Mutual labels:  data
Awesome Cybersecurity Datasets
A curated list of amazingly awesome Cybersecurity datasets
Stars: ✭ 380 (+1.88%)
Mutual labels:  data
React Refetch
A simple, declarative, and composable way to fetch data for React components
Stars: ✭ 3,418 (+816.35%)
Mutual labels:  data
Exporter
Lightweight Exporter library
Stars: ✭ 384 (+2.95%)
Mutual labels:  data
React Query
⚛️ Hooks for fetching, caching and updating asynchronous data in React
Stars: ✭ 24,427 (+6448.79%)
Mutual labels:  data
Android Extensions
An Android library with modules to quickly bootstrap an Android application.
Stars: ✭ 356 (-4.56%)
Mutual labels:  table
Vue Tables
Vue.js grid components
Stars: ✭ 361 (-3.22%)
Mutual labels:  table

Glide Data Grid

We built Data Grid as the basis for the Glide Data Editor. It's a React component built on top of HTML Canvas.

Glide Data Grid

  • It scales to millions of rows. Cells are rendered lazily on demand for memory efficiency.
  • Scrolling is extremely fast. Native scrolling keeps everything buttery smooth.
  • Supports multiple types of cells. Numbers, text, markdown, bubble, image
  • Fully Free & Open Source. MIT licensed so you can use Grid in commerical projects.
  • Editing is built in.
  • Resizable and movable columns.
  • Variable sized rows.
  • Single- and multi-select.
  • Cell rendering can be customized.

Installation

To add Grid to your own project:

$ npm install @glideapps/glide-data-grid
# Install peer dependencies
$ npm install direction marked react-responsive-carousel styled-components

Simple usage

First you need to define your columns:

const columns: GridColumn[] = [
    { title: "Number", width: 100 },
    { title: "Square", width: 100 },
];

Next you need a function which, given column and row indexes, returns a cell to display. Here we have two columns, the first of which shows the index of the row, and the second the square of that number:

function getData([col, row]: readonly [number, number]): GridCell {
    let n: number;
    if (col === 0) {
        n = row;
    } else if (col === 1) {
        n = row * row;
    } else {
        throw new Error("This should not happen");
    }
    return {
        kind: GridCellKind.Number,
        data: n,
        displayData: n.toString(),
        allowOverlay: false,
    };
}

Now you can use Data Grid:

<DataEditorContainer width={500} height={300}>
    <DataEditor getCellContent={getData} columns={columns} rows={1000} />
</DataEditorContainer>

Full API documentation

The full API documentation is in the API.md file.

FAQ

Nothing shows up!

Please read the Prerequisites section in the docs.

It crashes when I try to edit a cell!

Please read the Prerequisites section in the docs.

Does it work with screen readers and other a11y tools?

Not yet unfortunately. This is on our todo list.

Does it support my data source?

Yes.

Data Grid is agnostic about the way you load/store/generate/mutate your data. What it requires is that you tell it which columns you have, how many rows, and to give it a function it can call to get the data for a cell in a specific row and column.

Does it do sorting, searching, and filtering?

Search is included.

Filtering and sorting are something you would have to implement with your data source. There are hooks for adding column header menus if you want that.

The reason we don't add filtering/sorting in by default is that these are usually very application-specific, and can often also be implemented more efficiently in the data source, via a database query, for example.

Can it do frozen rows/columns?

Not yet, but there is some infrastructure for this internally already, and we accept PRs.

Can I render my own cells?

Yes, but the renderer has to use HTML Canvas.

Why does Data Grid use HTML Canvas?

Originally we had implemented our Grid using virtualized rendering. We virtualized both in the horizontal and vertical direction using react-virtualized. The problem is simply scrolling performance. Once you need to load/unload hundreds of DOM elements per frame nothing can save you.

There are some hacks you can do like setting timers and entering into a "low fidelity" rendering mode where you only render a single element per cell. This works okay until you want to show hundreds of cells and you are right back to choppy scrolling. It also doesn't really look or feel great.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].