Skip to content

ToolbarItem@sheetwrite/core

On this page

Built-in, separator, or custom callback item in the grid toolbar.

Members 4

action Built-in action to bind (or "separator").

Built-in action to bind (or "separator"). Omit when supplying `onClick`.

onClick Custom click handler; receives the grid handle.
onClick?: (grid: Grid) => void;

Custom click handler; receives the grid handle. Overrides `action`.

icon Button icon/content. Strings render as plain text; pass a DOM Node or a factory returning one for SVG/HTML icons without using innerHTML.
icon?: ToolbarIcon;
title Accessible tooltip.
title?: string;

Declaration

View full TypeScript declaration
export interface ToolbarItem {
onClick?: (grid: Grid) => void;
icon?: ToolbarIcon;
title?: string;
}

Referenced by

Workspace packages depending on @sheetwrite/core

  • @sheetwrite/benchdependency
  • @sheetwrite/docs-startdependency
  • @sheetwrite/reactdependency
  • @sheetwrite/sveltedependency
  • @sheetwrite/vuedependency
  • @sheetwrite/xlsxdependency

Public exports naming ToolbarItem

Documentation