Sheets

Supports multiple sheets with cross-references and tables

Developers can define any Sheet type, as CanvasGrid is agnostic of sheets. The sheet model used by useSpreadsheetState hook is

https://github.com/rowsncolumns/spreadsheet/blob/main/apps/spreadsheet/types.ts#L6

export type Sheet = {
  title: string;
  sheetId: number;
  tabColor?: string;
  hidden?: boolean;
  rowCount?: number;
  columnCount?: number;
  frozenRowCount?: number;
  frozenColumnCount?: number;
  hideGridlines?: boolean;
  merges?: GridRange[];
  basicFilter?: FilterView;
  rowMetadata?: (DimensionProperties | null)[];
  columnMetadata?: (DimensionProperties | null)[];
};

Sheet components

The following Sheet components are packaged with Spreadsheet

  • NewSheetButton

  • SheetSwitcher

  • SheetTabs

  • SheetStatus

  • TableEditor

  • DeleteSheetConfirmation

Using your own Sheet type

You can extend from the core Sheet type and add your custom attributes

Last updated

Was this helpful?