ColumnSummaryStyleObject
One of the style models that should be returned when changing the cell style with CellStyleCallback
Signature:
export interface ColumnSummaryStyleObjectRemarks
Used in GridFooter.cellStyleCallback, HeaderSummary.cellStyleCallback.
Example
// Apply footer
const f = function (grid, cell) {
return {
styleName: 'custom-footer'
}
}
footer.cellStyleCallback = f;
const f2 = function (grid, cell) {
return {
styleName: 'custom-summary'
}
}
headerSummary.cellStyleCallback = f2;Properties
| Property | Type | Description |
|---|---|---|
| booleanFormat | string | When the value is of type Boolean, Format |
| datetimeFormat | string | When the value is in date format, Format |
| exportStyleName | string | Style name to be applied when exporting to Excel |
| numberFormat | string | When the value is in numeric format, Format |
| prefix | string | Text to be displayed in front of the value |
| styleName | string | style name |
| suffix | string | Text to be added to the end of the value |
| text | string | Text to be displayed in cell |
| textFormat | string | When the value is in text format, Format |
Properties Desc
booleanFormat
Formatting when the value is of type Boolean
Type - string
Remarks:
If this value is specified, it is used as a conversion format when outputting the value of a boolean field.
If not specified, the value set in the data field is used.
Separated with a colon (:) or semicolon (;), the left side is false, and the right side is true.
Example) 'Nub: Yub'
datetimeFormat
Format when the value is in date format
Type - string
exportStyleName
Style name to be applied when exporting to Excel
Type - string
numberFormat
Format when the value is in numeric format
Type - string
prefix
Text to display in front of the value
Type - string
styleName
style name
Type - string
suffix
Text to be added to the end of the value
Type - string
text
셀에 표시될 텍스트
Type - string
Remarks:
text가 지정되면 ColumnSummary.expression과 ColumnSummary.text 속성은 무시된다.
textFormat
Formatting when the value is in text format
Type - string