One new grid, with the settings it was created with for one add-on.
Members
Properties
read-only
The new grid the add-on is attached to.
readonly settings: Settings | undefined;read-only
Settings from createGrid(host, { addons: { [name]: settings } }), or undefined.
Methods
Shows the grid's Get Data, Refresh All and Queries & Connections commands
and connects them to commands. The grid removes them when it is
destroyed; the returned function removes them earlier.
historyCommand(command: (action: "open" | "save") => void): void;Shows the grid's Version History and Save Version commands; they call
command with "open" or "save".
Gives the grid's formula bar a suggester. While a formula is typed in the bar, its suggestion shows as dimmed text after the caret and Tab takes it. The grid removes it when it is destroyed; the returned function removes it earlier.
Declaration
View full TypeScript declaration
export interface SheetwriteAddonGridContext<Settings> { readonly settings: Settings | undefined; historyCommand(command: (action: "open" | "save") => void): void;}Referenced by
Public exports naming SheetwriteAddonGridContext
SheetwriteAddon@sheetwrite/core