@serenity-is/sleekgrid / GroupItemMetadataProviderOptions
Interface: GroupItemMetadataProviderOptions
Defined in: src/data/groupitemmetadataprovider.tsx:6
Options controlling how GroupItemMetadataProvider renders group and totals rows.
Properties
dataCellCssClass?
optionaldataCellCssClass:string
Defined in: src/data/groupitemmetadataprovider.tsx:23
CSS class applied to the indented first cell of grouped data rows. Defaults to "slick-group-data".
enableExpandCollapse?
optionalenableExpandCollapse:boolean
Defined in: src/data/groupitemmetadataprovider.tsx:8
Whether group rows show an expand/collapse toggle and respond to clicks/keys. Defaults to true.
groupCellCssClass?
optionalgroupCellCssClass:string
Defined in: src/data/groupitemmetadataprovider.tsx:10
CSS class applied to the group cell (the spanned cell). Defaults to "slick-group-cell".
groupCssClass?
optionalgroupCssClass:string
Defined in: src/data/groupitemmetadataprovider.tsx:12
CSS class applied to the entire group row. Defaults to "slick-group".
groupFocusable?
optionalgroupFocusable:boolean
Defined in: src/data/groupitemmetadataprovider.tsx:44
Whether group rows can receive focus. Defaults to true.
groupFormat?
optionalgroupFormat:ColumnFormat<Group<any>>
Defined in: src/data/groupitemmetadataprovider.tsx:46
Modern formatter for the group title/aggregated content.
groupFormatter?
optionalgroupFormatter:CompatFormatter<Group<any>>
Defined in: src/data/groupitemmetadataprovider.tsx:51
Legacy formatter for group rows.
Deprecated
Use GroupItemMetadataProviderOptions.groupFormat instead.
groupIndentation?
optionalgroupIndentation:number
Defined in: src/data/groupitemmetadataprovider.tsx:42
Indentation in pixels per grouping level. Defaults to 15.
Deprecated
It is not used to emit an inline style anymore, as that doesn't work with a
content security policy that disallows inline styles. The indentation is now applied by
the slick-group-level-N classes that the provider puts on group rows, toggles and data
cells, see --sg-group-indent in css/slick.grid.css. Set that CSS variable to change
the step. This option is kept for compatibility.
groupLevelPrefix?
optionalgroupLevelPrefix:string
Defined in: src/data/groupitemmetadataprovider.tsx:53
CSS class prefix for grouping level (appended with level number). Defaults to "slick-group-level-".
groupTitleCssClass?
optionalgroupTitleCssClass:string
Defined in: src/data/groupitemmetadataprovider.tsx:55
CSS class applied to the title span inside the group cell. Defaults to "slick-group-title".
hasSummaryType()?
optionalhasSummaryType: (column) =>boolean
Defined in: src/data/groupitemmetadataprovider.tsx:62
Predicate determining whether a column has a summary/aggregate. Used to locate the spanned group cell position.
Parameters
column
Column to test.
Returns
boolean
true if the column contributes a total/summary.
indentDataRows?
optionalindentDataRows:boolean
Defined in: src/data/groupitemmetadataprovider.tsx:21
Whether the first cell of the data rows inside a group is indented according to the grouping
level, so that they look nested under the group rows. Defaults to true.
The indentation goes to the column the group cell starts at, see groupCellPosition, which the provider can only find when it knows the grid and so its columns, i.e. when it is registered as a plugin of the grid, which also makes the view use the same instance.
minGroupCellWidth?
optionalminGroupCellWidth:number
Defined in: src/data/groupitemmetadataprovider.tsx:33
Columns that have a fixed width, i.e. the same minWidth and maxWidth, and that are
narrower than this many pixels are skipped when finding the group cell column, like the
columns marked with skipGroupCell. It finds the narrow utility columns, e.g. a checkbox
column of 27px, without needing a flag. The declared width is used, not the current one, so
forceFitColumns and resizing don't move the group cell column. Set it to 0 to disable it,
and set skipGroupCell on a column to skip a column that is not fixed.
Defaults to 40.
toggleCollapsedCssClass?
optionaltoggleCollapsedCssClass:string
Defined in: src/data/groupitemmetadataprovider.tsx:68
CSS class added when the toggle represents a collapsed group. Defaults to "collapsed".
toggleCssClass?
optionaltoggleCssClass:string
Defined in: src/data/groupitemmetadataprovider.tsx:64
CSS class for the expand/collapse toggle element. Defaults to "slick-group-toggle".
toggleExpandedCssClass?
optionaltoggleExpandedCssClass:string
Defined in: src/data/groupitemmetadataprovider.tsx:66
CSS class added when the toggle represents an expanded group. Defaults to "expanded".
totalsCssClass?
optionaltotalsCssClass:string
Defined in: src/data/groupitemmetadataprovider.tsx:70
CSS class applied to totals rows. Defaults to "slick-group-totals".
totalsFocusable?
optionaltotalsFocusable:boolean
Defined in: src/data/groupitemmetadataprovider.tsx:72
Whether totals rows can receive focus. Defaults to false.
totalsFormat?
optionaltotalsFormat:ColumnFormat<IGroupTotals<any>>
Defined in: src/data/groupitemmetadataprovider.tsx:74
Modern formatter for totals rows.
totalsFormatter?
optionaltotalsFormatter:CompatFormatter<IGroupTotals<any>>
Defined in: src/data/groupitemmetadataprovider.tsx:79
Legacy formatter for totals rows.
Deprecated
Use GroupItemMetadataProviderOptions.totalsFormat instead.