API reference
@salmonui/data-grid/engine/expansion
35 exported symbols: 10 functions, 2 classes, 8 interfaces, 13 types and 2 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/expansion';Functions
baseViewThe innermost (structural) view of a possibly wrapped view.createDetailModuleCreates the detail module. Options are read from options.detail (DetailOptions).createSparseRowMetricsdataIndexAtData row index (captions, footers, detail rows, and pinned rows not counted) of the row at visible index, or -1 for a synthetic or pinned row. O(log) for plain…dataRowCountOfData rows of the current view (excludes synthetic rows).dataRowIdAtRow id of the data row at data index dataIndex of the current view, or undefined.detailParentIdParent row id of a detail row id, or null when id is not a detail row id.detailRowIdDetail row id of a parent row.outerIndexMaps an index of baseView(view) to a visible index of view.visibleRowOfRow object of a visible row (source rows and view-owned rows).
Classes
DetailViewPlainViewView adapter over an ungrouped model: identity or order, optionally a page window [start, end) of it. Lets the detail view treat every model as a view.
Types
DetailCollapseAllCommandDetailCollapseCommandDetailExpandAllCommandDetailExpandCommandDetailLoadCommandStarts the async load of a visible row's detail when it is idle (renderers dispatch it when a detail row mounts).DetailLoadedCommandA detail load settled (dispatched by the engine; part of the public command union).DetailRetryCommandDetailSetEnabledCommandDetailSetExpandedCommandControlled expansion: replaces the overrides (and optionally the default).DetailToggleCommand
Constants
DETAIL_DEFAULT_KEYReserved query.expansion.detail key carrying defaultExpanded: true.DETAIL_ID_PREFIX
Re-exported entry points
@salmonui/data-grid/engine11 symbols: 8 interfaces and 3 types