Skip to content

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

PropertyTypeDescriptionDefined in
columnFacetingColumnFacetingFeatureColumn faceting feature for the DataGrid, enabling the grouping of data by column facets.core/features/features.svelte.ts:63
columnGroupingColumnGroupingFeatureColumn grouping feature for the DataGrid, enabling the grouping of columns.core/features/features.svelte.ts:73
columnOrderingColumnOrderingFeatureColumn ordering feature for the DataGrid, allowing the reordering of columns.core/features/features.svelte.ts:68
columnPinningColumnPinningFeatureColumn pinning feature for the DataGrid, allowing columns to be pinned to the left or right.core/features/features.svelte.ts:58
columnSizingColumnSizingFeatureColumn sizing feature for the DataGrid, enabling the resizing of columns.core/features/features.svelte.ts:48
columnVisibilityColumnVisibilityFeatureColumn visibility feature for the DataGrid, allowing columns to be shown or hidden dynamically.core/features/features.svelte.ts:53
datagridDatagridCore<any>The DataGrid instance that this feature set is operating on.core/features/features.svelte.ts:18
filteringColumnFilteringFeatureFiltering feature for the DataGrid, allowing rows to be filtered based on column values.core/features/features.svelte.ts:38
globalSearchGlobalSearchFeatureGlobal search feature for the DataGrid, allowing for a search across multiple columns.core/features/features.svelte.ts:43
groupingGroupingFeatureGrouping feature for the DataGrid, enabling the grouping of rows based on specified column values.core/features/features.svelte.ts:33
paginationPaginationFeaturePagination feature for the DataGrid, enabling pagination controls.core/features/features.svelte.ts:23
rowExpandingRowExpansionFeatureRow expanding feature for the DataGrid, allowing rows to be expanded to show additional details.core/features/features.svelte.ts:78
rowPinningRowPinningFeatureRow pinning feature for the DataGrid, allowing rows to be pinned at the top or bottom.core/features/features.svelte.ts:88
rowSelectionRowSelectionFeatureRow selection feature for the DataGrid, enabling the selection of rows for batch actions.core/features/features.svelte.ts:83
sortingSortingFeatureSorting feature for the DataGrid, allowing columns to be sorted in ascending or descending order.core/features/features.svelte.ts:28