View as Markdown

API reference: @salmonui/data-grid/engine/edit

createInitialEditStatefunction

import { createInitialEditState } from '@salmonui/data-grid/engine/edit';

Also exported from @salmonui/data-grid/engine/edit-state.

function createInitialEditState<Row>(options: DataGridOptions<Row>): EditState;

The state createEditModule().initialState(options) returns: no drafts, no active editor, version 0. Pure; a renderer that loads the module lazily renders this at-rest state until the module is loaded.