isLoadingPlaceholder
Since v3.9.1
Type guard for ServerSide loading placeholders.
With the default placeholderRendering: 'loading-row' the grid renders placeholders
itself, so column renderers, value accessors, format and rowClass are never called
for them while rendering. Use this guard where placeholders still reach your code: with
placeholderRendering: 'columns' (including a Responsive cardRenderer), in a
sortComparator or gridConfig.sortHandler under sortMode: 'local', in Export
mode: 'formatted' / processCell and Clipboard copy (which call format), or when
reading grid.rows directly.
function isLoadingPlaceholder(row: unknown): rowParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
row | unknown |
Example
Section titled “Example”import { isLoadingPlaceholder } from '@toolbox-web/grid/plugins/server-side';
const loaded = grid.rows.filter((row) => !isLoadingPlaceholder(row));