HeaderSummary
Single configuration model in the Header Summary area
Signature:
export interface HeaderSummary extends GridSummaryObject
Extends: GridSummaryObject
Remarks
Grid automatically creates one summary if there is no separate setting, and GridBase.headerSummary returns the first summary.
Change the property using setHeaderSummary() or GridBase.headerSummary Use to specify only the desired properties.
Example
gridView.setHeaderSummary({styleName: 'custom-hsummary-1'});
// or
gridView.headerSummary.styleName = 'custom-hsummary-1';
Events
Property | Type | Description |
---|---|---|
cellStyleCallback | CellStyleCallback | Callback to specify cell style |
Properties
Property | Type | Description |
---|---|---|
height | number | height |
minHeight | number | Minimum Height |
styleName | string | style class name |
summaryIndex | number | summary Order within the collection |
value | any | Stores the value calculated from valueCallback or expression. |
visible | boolean | Visibility |
Events Desc
cellStyleCallback
Callbacks for specifying cell styles
Type
- CellStyleCallback
Remarks:
It can be specified as a CSS class name in string
form or in the form of ColumnSummaryStyleObject.
Example:
// Apply footer
const f = function (grid, cell) {
if (cell.value > 10) {
return {
styleName: 'custom-summary'
}
}
}
headerSummary.cellStyleCallback = f;
Properties Desc
height
height
Type
- number
Remarks:
If it is 0
, it is automatically calculated and specified. If it is 0
or more, compare it to minHeight and specify a larger value.
minHeight
minimum height
Type
- number
styleName
style class name
Type
- string
summaryIndex
Summary Order within the collection
Type
- number
value
Stores the value calculated from valueCallback or expression.
Type
- any
visible
Visibility
Type
- boolean