pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/tegojs/sheet

/code-c22301b4e838281c.css" /> GitHub - tegojs/sheet: Fork from x-spreadsheet, adapt to meet tachybase requirements. · GitHub
Skip to content

tegojs/sheet

 
 

Repository files navigation

TegoSheet (@tego/sheet)

A high-performance spreadsheet component for React, combining React's declarative UI with Canvas rendering.

Installation

pnpm install @tego/sheet

Quick Start

Basic Usage

import { TegoSheet } from '@tego/sheet';

function App() {
  return <TegoSheet />;
}

With Options

<TegoSheet
  options={{
    mode: 'edit',        // 'edit' | 'read'
    showToolbar: true,
    showBottomBar: true,
    showGrid: true,
  }}
/>

Load Data

import { TegoSheet, useSheetStore } from '@tego/sheet';
import { useEffect } from 'react';

function App() {
  const { loadData } = useSheetStore();

  useEffect(() => {
    loadData([
      {
        name: 'Sheet1',
        rows: {
          0: { cells: { 0: { text: 'A1' }, 1: { text: 'B1' } } },
          1: { cells: { 0: { text: 'A2' }, 1: { text: 'B2' } } },
        },
      },
    ]);
  }, []);

  return <TegoSheet />;
}

Listen to Changes

<TegoSheet
  onChange={(data) => {
    console.log('Sheet data changed:', data);
  }}
/>

Documentation

See docs for full API documentation.

License

MIT

About

Fork from x-spreadsheet, adapt to meet tachybase requirements.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 93.7%
  • Less 6.2%
  • Other 0.1%
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy