Skip to content
Sheetwrite

Sheetwrite / Documentation

createToolbar@sheetwrite/core/shell

Mount a toolbar bound to grid.actions (custom items receive the grid).

Mount a toolbar bound to grid.actions (custom items receive the grid). Mouse clicks never steal grid focus; keyboard users get local Left/Right/Home/End movement across the controls while the toolbar has focus. Returns the mounted piece with an idempotent destroy.

Declaration

function createToolbar(
host: HTMLElement,
grid: Grid,
options?: ToolbarOptions,
): ShellPiece