dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_DataGridModule cluster_DataGridModule_DataGridComponent_providers cluster_DataGridModule_declarations cluster_DataGridModule_exports cluster_DataGridModule_imports BaseFilteringFormRendererComponent BaseFilteringFormRendererComponent DataGridModule DataGridModule BaseFilteringFormRendererComponent->DataGridModule CellRendererComponent CellRendererComponent CellRendererComponent->DataGridModule CellRendererDefDirective CellRendererDefDirective CellRendererDefDirective->DataGridModule ColumnDirective ColumnDirective ColumnDirective->DataGridModule ConfigureCustomColumnComponent ConfigureCustomColumnComponent ConfigureCustomColumnComponent->DataGridModule DataGridComponent DataGridComponent DataGridComponent->DataGridModule ExpandableCellRendererComponent ExpandableCellRendererComponent ExpandableCellRendererComponent->DataGridModule ExpandableHeaderCellRendererComponent ExpandableHeaderCellRendererComponent ExpandableHeaderCellRendererComponent->DataGridModule ExpandableRowDirective ExpandableRowDirective ExpandableRowDirective->DataGridModule FilteringFormRendererComponent FilteringFormRendererComponent FilteringFormRendererComponent->DataGridModule FilteringFormRendererDefDirective FilteringFormRendererDefDirective FilteringFormRendererDefDirective->DataGridModule HeaderCellRendererDefDirective HeaderCellRendererDefDirective HeaderCellRendererDefDirective->DataGridModule VisibleControlsPipe VisibleControlsPipe VisibleControlsPipe->DataGridModule BaseFilteringFormRendererComponent BaseFilteringFormRendererComponent DataGridModule->BaseFilteringFormRendererComponent CellRendererDefDirective CellRendererDefDirective DataGridModule->CellRendererDefDirective ColumnDirective ColumnDirective DataGridModule->ColumnDirective DataGridComponent DataGridComponent DataGridModule->DataGridComponent ExpandableRowDirective ExpandableRowDirective DataGridModule->ExpandableRowDirective FilteringFormRendererDefDirective FilteringFormRendererDefDirective DataGridModule->FilteringFormRendererDefDirective HeaderCellRendererDefDirective HeaderCellRendererDefDirective DataGridModule->HeaderCellRendererDefDirective VisibleControlsPipe VisibleControlsPipe DataGridModule->VisibleControlsPipe {    provide: PRODUCT_EXPERIENCE_EVENT_SOURCE, useExisting: forwardRef(() => DataGridComponent) } {    provide: PRODUCT_EXPERIENCE_EVENT_SOURCE, useExisting: forwardRef(() => DataGridComponent) } {    provide: PRODUCT_EXPERIENCE_EVENT_SOURCE, useExisting: forwardRef(() => DataGridComponent) }->DataGridComponent CommonModule CommonModule CommonModule->DataGridModule DynamicFormsModule DynamicFormsModule DynamicFormsModule->DataGridModule FilterMapperModule FilterMapperModule FilterMapperModule->DataGridModule FormsModule FormsModule FormsModule->DataGridModule ModalModule ModalModule ModalModule->DataGridModule ProductExperienceModule ProductExperienceModule ProductExperienceModule->DataGridModule

Data grid module

This module provides components and classes for loading, displaying, filtering, and sorting data in a grid.

DataGridComponent

See the documentation of the main component DataGridComponent for further details.

Examples

You can find examples of data grid usage in our tutorial application. Create a new tutorial-based app and run it:

Example :
npx @c8y/cli new examples tutorial
cd examples
npm install
npm start -- -u https://your-cumulocity-tenant.cumulocity.com

Then go to "Data grid" in the left navigation menu.

Client-side data grid

This tab demonstrates how to:

  • define the list of columns to be displayed
  • pass static set of data
  • filter and sort data on client side
  • use event handlers for: items selection, individual actions, bulk actions, config changes
Client-side data grid example

Server-sdie data grid

This tab demonstrates how to:

  • set custom titles and labels
  • define columns with inline objects
  • define a custom column with a class
  • use custom components for header cell, data cell and filtering form
  • build inventory query and load data with serverSideDataCallback
  • set up event handlers for: items selection, individual actions, bulk actions, config changes
  • set up a view for empty list
Server-side data grid example

results matching ""

    No results matching ""