RealGrid2 API
Interface
ColumnSummaryStyleObject

ColumnSummaryStyleObject

One of the style models that should be returned when changing the cell style with CellStyleCallback

Signature:

export interface ColumnSummaryStyleObject

Remarks

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

PropertyTypeDescription
booleanFormatstringWhen the value is of type Boolean, Format
datetimeFormatstringWhen the value is in date format, Format
exportStyleNamestringStyle name to be applied when exporting to Excel
numberFormatstringWhen the value is in numeric format, Format
prefixstringText to be displayed in front of the value
styleNamestringstyle name
suffixstringText to be added to the end of the value
textstringText to be displayed in cell
textFormatstringWhen 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.expressionColumnSummary.text 속성은 무시된다.


textFormat

Formatting when the value is in text format

Type - string