Skip to content

Latest commit

 

History

History
114 lines (89 loc) · 3.84 KB

File metadata and controls

114 lines (89 loc) · 3.84 KB

@witqq/spreadsheet

Canvas-based spreadsheet engine — framework-agnostic core

npm version license

Installation

npm install @witqq/spreadsheet

Quick Start

import { SpreadsheetEngine } from '@witqq/spreadsheet';
import type { ColumnDef } from '@witqq/spreadsheet';

const columns: ColumnDef[] = [
  { key: 'name', title: 'Name', width: 150 },
  { key: 'age', title: 'Age', width: 80, type: 'number' },
  { key: 'email', title: 'Email', width: 200 },
];

const data = [
  { name: 'Alice', age: 30, email: 'alice@example.com' },
  { name: 'Bob', age: 25, email: 'bob@example.com' },
];

const engine = new SpreadsheetEngine({ columns, data });
engine.mount(document.getElementById('grid')!);

Documentation

Full documentation is available at spreadsheet.witqq.dev and included in this package under docs/.

Getting Started

Core Concepts

Guides

Plugins

API Reference

Frameworks

License

BUSL-1.1