RealGrid2 API
Interface
ColumnSummary

ColumnSummary

Base classes such as ColumnFooter, ColumnHeaderSummary

Signature:

export interface ColumnSummary extends ColumnObject

Extends: ColumnObject

Remarks

All properties of ColumnSummary can only be called by subclasses that inherit it.

[Superclass]

ColumnObject

[subclass]

ColumnFooter

ColumnHeaderSummary

Events

PropertyTypeDescription
styleCallbackCellStyleCallbackCallbacks for styling
valueCallbackColumnSummaryCallbackCallback used when the user specifies the value displayed on the screen

Properties

PropertyTypeDescription
booleanFormatstringFormat displayed when the value is of type Boolean
datetimeFormatstringFormat displayed when the value is in date format
exportStyleNamestringStyle name to be applied when exporting to Excel
expressionstringexpression
indexnumber
numberFormatstringFormat displayed when the value is in numeric format
prefixstringText to be prepended
styleNamestringstyle class name
suffixstringText to be added after
summaryIndexnumbersequence number of summary
templateCallbackRealizeSummaryCallbackUsed to replace and display a specific string in ColumnObject.template
templateEventsSummaryTemplateEvent | SummaryTemplateEvent[]Used when setting an event on an element added with ColumnObject.template
textstringText displayed on screen
textFormatstringWhen the value is in text format, Convert Format
valueanyUsed when getting the result of ColumnSummary.expression or ColumnSummary.valueCallback

Events Desc

styleCallback

Callbacks for styling

Type - CellStyleCallback

Remarks:

See CellStyleCallback


valueCallback

Callback used when the user specifies the value displayed on the screen

Type - ColumnSummaryCallback

Remarks:

If valueCallback is specified, text/expression is ignored.


Properties Desc

booleanFormat

Format displayed when the value is of type Boolean

Type - string

Remarks:

Separated with a colon (:) or semicolon (;), the left side is false, and the right side is true.

Example) 'Nub: Yub'


datetimeFormat

Format displayed when the value is in date format

Type - string


exportStyleName

Style name to be applied when exporting to Excel

Type - string


expression

expression

Type - string

Remarks:

If expression is specified, text is ignored.


index

Warning: This API is now obsolete.

Replaced with summaryIndex

Type - number


numberFormat

Format displayed when the value is in numeric format

Type - string


prefix

text to be added before

Type - string


styleName

style class name

Type - string


suffix

text to be added after

Type - string


summaryIndex

Sequence of summary

Type - number

Remarks:

Sequence number if there are multiple GridColumn.footer or GridColumn.headerSummary.


templateCallback

Used to replace and display a specific string in ColumnObject.template

Type - RealizeSummaryCallback

Remarks:

Called if the string is not in values.


templateEvents

Used when setting an event to an element added with ColumnObject.template

Type - SummaryTemplateEvent | SummaryTemplateEvent[]


text

Text displayed on screen

Type - string


textFormat

Conversion format when the value is in text format

Type - string

Remarks:

Separate with a semicolon (;) and specify the same type as the first parameter of String.prototype.replace on the left and the second parameter on the right. Example) '([A-Za-z]*); Mr\. \$1'


value

Used when getting the result of ColumnSummary.expression or ColumnSummary.valueCallback

Type - any

Remarks:

This is a read-only value.