View as Markdown

API reference: @salmonui/data-grid/engine

GroupingSetExpandedCommandtype

import type { GroupingSetExpandedCommand } from '@salmonui/data-grid/engine';

Also exported from @salmonui/data-grid/engine/grouping.

type GroupingSetExpandedCommand = {
    type: 'grouping.setExpanded';
    expanded: Record<string, boolean>;
    defaultExpanded?: boolean;
};

Controlled expansion: replaces the per-group overrides (and optionally the default).

GroupingSetExpandedCommand members (3)
NameSignatureDescription
typetype: 'grouping.setExpanded';
expandedexpanded: Record<string, boolean>;
defaultExpandedoptionaldefaultExpanded?: boolean;