FeatureConfig
Declarative feature configuration interface.
This interface is intentionally empty in core — it is populated via module augmentation
by feature side-effect imports (@toolbox-web/grid/features/selection, etc.).
Third-party plugins can also augment this interface to add their own features.
Example
Section titled “Example”// Each feature import augments this interface:import '@toolbox-web/grid/features/selection';import '@toolbox-web/grid/features/filtering';
grid.gridConfig = { features: { selection: 'range', // ← typed by selection feature module filtering: { debounceMs: 200 }, // ← typed by filtering feature module },};Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
clipboard? | boolean | ClipboardConfig | Enable clipboard copy/paste. Requires selection. |
columnVirtualization? | boolean | ColumnVirtualizationConfig | Enable horizontal column virtualization. |
contextMenu? | boolean | ContextMenuConfig | Enable right-click context menu. |
editing? | boolean | click | dblclick | manual | EditingConfig | Enable inline cell editing. |
export? | boolean | ExportConfig | Enable data export (CSV, Excel, etc.). |
filtering? | boolean | FilterConfig<TRow> | Enable column filtering. |
groupingColumns? | boolean | GroupingColumnsConfig | Enable column grouping headers. |
groupingRows? | GroupingRowsConfig | Enable row grouping with expand/collapse. |
masterDetail? | MasterDetailConfig | Enable master-detail rows with expandable detail panels. |
multiSort? | boolean | multi | MultiSortConfig | single | Enable multi-column sorting. |
sorting? | boolean | multi | MultiSortConfig | single | ⚠️ |
pinnedColumns? | boolean | Enable column pinning (left/right). |
pinnedRows? | boolean | PinnedRowsConfig | Enable pinned (frozen) rows at top/bottom of the grid. |
pivot? | PivotConfig | Enable pivot table mode. |
print? | boolean | PrintConfig | Enable print support with configurable layout. |
reorderColumns? | boolean | ReorderConfig | Enable column drag-to-reorder. |
reorder? | boolean | ReorderConfig | ⚠️ |
reorderRows? | boolean | RowReorderConfig | Enable row drag-to-reorder. |
rowReorder? | boolean | RowReorderConfig | ⚠️ |
responsive? | boolean | ResponsivePluginConfig<unknown> | Enable responsive column hiding based on breakpoints. |
selection? | row | cell | range | SelectionConfig<TRow> | Enable cell/row/range selection. |
serverSide? | ServerSideConfig | Enable server-side data fetching, sorting, filtering, etc. |
tree? | boolean | TreeConfig | Enable tree (hierarchical) data display with expand/collapse. |
undoRedo? | boolean | UndoRedoConfig | Enable undo/redo for cell edits. Requires editing. |
visibility? | boolean | VisibilityConfig | Enable column visibility toggling. |
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt