Skip to content
Sheetwrite

@sheetwrite/core/history

historyAddonfunction

Report a problem

On this page

The version history add-on. It shows Review › Version History and Save Version in each grid that has an archive and an author, from options or from createGrid(host, { addons: { history: { ... } } }); grid settings replace the init options field by field. The panel and its code load only when either command runs; archive recording stays under the host's committed-transaction journal. A grid destroyed while the panel code loads opens nothing.

Declaration

function historyAddon(
options?: Partial<HistoryAddonOptions>,

Parameters

options?: Partial<HistoryAddonOptions>optional

Defaults for every grid, such as archive and authorId; a grid's own settings replace them field by field.

Returns

The add-on to pass in initSheetwrite({ addons }).

See also