View as Markdown

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

Types

  • NewRowPositionnewRowPosition values; above, below and child are tree mode positions relative to a row.

Constants

Re-exported entry points