DatagridFeatures
Defined in: core/features/features.svelte.ts:14
A class that manages the various features of a DataGrid, including sorting, filtering, pagination, row selection, column visibility, and more. It allows for the dynamic configuration and initialization of features, enabling an extensible and customizable DataGrid.
Type Parameters
• TOriginalRow = any
Constructors
new DatagridFeatures()
new DatagridFeatures<
TOriginalRow
>(datagrid
,config
?):DatagridFeatures
<TOriginalRow
>
Defined in: core/features/features.svelte.ts:97
Initializes the DataGrid features with the provided DataGrid instance and optional configuration. This constructor sets up all the core features for sorting, filtering, pagination, and more based on the provided configuration.
Parameters
datagrid
DatagridCore
<any
>
The DataGrid instance that these features will operate on.
config?
DatagridCoreConfig
<TOriginalRow
>
Optional configuration for the features, including initial states and feature overrides.
Returns
DatagridFeatures
<TOriginalRow
>
Properties
Property | Type | Description | Defined in |
---|---|---|---|
columnFaceting | ColumnFacetingFeature | Column faceting feature for the DataGrid, enabling the grouping of data by column facets. | core/features/features.svelte.ts:63 |
columnGrouping | ColumnGroupingFeature | Column grouping feature for the DataGrid, enabling the grouping of columns. | core/features/features.svelte.ts:73 |
columnOrdering | ColumnOrderingFeature | Column ordering feature for the DataGrid, allowing the reordering of columns. | core/features/features.svelte.ts:68 |
columnPinning | ColumnPinningFeature | Column pinning feature for the DataGrid, allowing columns to be pinned to the left or right. | core/features/features.svelte.ts:58 |
columnSizing | ColumnSizingFeature | Column sizing feature for the DataGrid, enabling the resizing of columns. | core/features/features.svelte.ts:48 |
columnVisibility | ColumnVisibilityFeature | Column visibility feature for the DataGrid, allowing columns to be shown or hidden dynamically. | core/features/features.svelte.ts:53 |
datagrid | DatagridCore <any > | The DataGrid instance that this feature set is operating on. | core/features/features.svelte.ts:18 |
filtering | ColumnFilteringFeature | Filtering feature for the DataGrid, allowing rows to be filtered based on column values. | core/features/features.svelte.ts:38 |
globalSearch | GlobalSearchFeature | Global search feature for the DataGrid, allowing for a search across multiple columns. | core/features/features.svelte.ts:43 |
grouping | GroupingFeature | Grouping feature for the DataGrid, enabling the grouping of rows based on specified column values. | core/features/features.svelte.ts:33 |
pagination | PaginationFeature | Pagination feature for the DataGrid, enabling pagination controls. | core/features/features.svelte.ts:23 |
rowExpanding | RowExpansionFeature | Row expanding feature for the DataGrid, allowing rows to be expanded to show additional details. | core/features/features.svelte.ts:78 |
rowPinning | RowPinningFeature | Row pinning feature for the DataGrid, allowing rows to be pinned at the top or bottom. | core/features/features.svelte.ts:88 |
rowSelection | RowSelectionFeature | Row selection feature for the DataGrid, enabling the selection of rows for batch actions. | core/features/features.svelte.ts:83 |
sorting | SortingFeature | Sorting feature for the DataGrid, allowing columns to be sorted in ascending or descending order. | core/features/features.svelte.ts:28 |