API reference
@salmonui/data-grid/engine/edit
62 exported symbols: 5 functions, 18 interfaces, 26 types and 13 constants. Each name links its page with the signature, docs and members. Names re-exported from another entry point are listed there, linked below.
import { … } from '@salmonui/data-grid/engine/edit';Functions
createEditApiEdit methods over an engine with the edit module (spread into the DataGrid API).createEditModuleCreates the edit module. Options are read from options.edit (EditOptions).createInitialEditStateThe state createEditModule().initialState(options) returns: no drafts, no active editor, version 0. Pure; a renderer that loads the module lazily renders this…showsNewRowshowNewRow takes effect: enabled, adding allowed, row mode.toEditInputConverts a value to a command input: Dates become ISO strings, other non-JSON values are stringified.
Interfaces
AddedTreePlacementWhere a tree-mode added row goes (getAddedTreePlacement).
Types
NewRowPositionnewRowPosition values; above, below and child are tree mode positions relative to a row.
Constants
BLANK_ROW_ID_PREFIXIds of the always-visible add row (showNewRow): this prefix plus a sequence starting at 1.DEFAULT_EDIT_MESSAGESEDIT_COMMANDSCommand types of the edit module (a renderer that registers the module lazily declares them up front).EDIT_DELETEDEDIT_DIRTYEDIT_EDITABLEEDIT_EDITINGCell flag bits (edit.cellFlags).EDIT_INVALIDEDIT_LOCKEDThe always-visible add row while another row edits: its editors are shown disabled.EDIT_NEWEDIT_PENDINGEDIT_ROW_EDITINGThe cell's row is in row / dialog edit.NEW_ROW_ID_PREFIX
Re-exported entry points
@salmonui/data-grid/engine42 symbols: 17 interfaces and 25 types