API reference: @salmonui/data-grid/engine/expansion
DetailSetExpandedCommandtype
import type { DetailSetExpandedCommand } from '@salmonui/data-grid/engine/expansion';type DetailSetExpandedCommand = {
type: 'detail.setExpanded';
expanded: {
[rowId: string]: boolean;
};
defaultExpanded?: boolean;
};
Controlled expansion: replaces the overrides (and optionally the default).
| Name | Signature | Description |
|---|---|---|
type | type: 'detail.setExpanded'; | |
expanded | expanded: {
[rowId: string]: boolean;
}; | |
defaultExpandedoptional | defaultExpanded?: boolean; |