Data grid components
#
Data gridThe DataGrid
component is a wrapper for cell components. It is used to display data in a grid.
#
PropsProp | Description |
---|---|
| string The name of the entity. You can use query language (Qualified entity list) to filter the entities. Required |
#
Generic cellThe GenericCell
component is a generic wrapper for cell content.
#
PropsProp | Description |
---|---|
| undefined | string Column's header |
| undefined | boolean If true column will try to be as narrow as possible given rendered data in the column. |
| undefined | boolean If false, the column can not be hidden. It is true by default. |
#
Text cellThe TextCell
component is a wrapper for text content.
#
PropsProp | Description |
---|---|
| string The name of the column in Contember schema where data is stored. Required |
| undefined | string Column's header |
| undefined | boolean If true column will try to be as narrow as possible given rendered data in the column. |
| undefined | boolean If false, the column can not be hidden. It is true by default. |
| undefined | boolean If true, the column cannot be ordered |
| undefined | Justification The justification of the column header |
| undefined | DataGridOrderDirection The initial order of the column |
#
Date cellThe DateCell
component adds a column for rendering date (including filtering by date range and sorting).
#
PropsProp | Description |
---|---|
| string The name of the column in Contember schema where data is stored. Required |
| undefined | string Column's header |
| undefined | boolean If true column will try to be as narrow as possible given rendered data in the column. |
| undefined | boolean If false, the column can not be hidden. It is true by default. |
| undefined | boolean If true, the column cannot be ordered |
| undefined | Justification The justification of the column header |
| undefined | DataGridOrderDirection The initial order of the column |
#
Has manny select cellThe HasManySelectCell
component adds a column for rendering has many binding.
#
PropsProp | Description |
---|---|
| string The name of the column in Contember schema where data is stored. Required |
| string | { label: ReactNode, value: OptionallyVariableFieldValue, description: ReactNode, searchKeywords: string | undefined }[] The options for the field. You can use query language to filter the entities. |
| undefined | string Column's header |
| undefined | boolean If true column will try to be as narrow as possible given rendered data in the column. |
| undefined | boolean If false, the column can not be hidden. It is true by default. |