JSPM

  • Created
  • Published
  • Downloads 70
  • Score
    100M100P100Q79390F
  • License MIT

OGrid vanilla JS – framework-free data grid with sorting, filtering, pagination, and spreadsheet-style editing.

Package Exports

  • @alaarab/ogrid-js
  • @alaarab/ogrid-js/styles

Readme

@alaarab/ogrid-js

OGrid data grid for vanilla JavaScript - no framework required.

Install

npm install @alaarab/ogrid-js

Usage

import { OGrid } from '@alaarab/ogrid-js';

const grid = new OGrid(document.getElementById('grid')!, {
  columns: [
    { columnId: 'name', name: 'Name', sortable: true },
    { columnId: 'age', name: 'Age', type: 'numeric' },
  ],
  data: [{ name: 'Alice', age: 30 }],
});

See the OGrid docs for full documentation.