RealGrid2 API
Interface
HeaderSummaryCollection

HeaderSummaryCollection

Collection model object for the Header summary area

Signature:

export interface HeaderSummaryCollection

Remarks

Displays the headerSummary of the grid or creates and manages multiple headerSummaries.

This is an object returned from GridBase.headerSummaries.

Example

//object
gridView.setHeaderSummaries({
      visible: true;
      items:[
          {
              styleName: 'custom-headerSummary-1'
          }, {
              styleName: 'custom-headerSummary-2'
          }
      ]
})
// or specified in array format
gridView.setFooters([
      {
          styleName: 'custom-headerSummary-1'
      }, {
          styleName: 'custom-headerSummary-2'
      }
])

Properties

PropertyTypeDescription
countnumberReturns the number of currently set headerSummary.
get(index: number) => HeaderSummaryReturns the headerSummary of the corresponding index.
getVisible(index: number) => HeaderSummaryRetrieves the headerSummary corresponding to the order in which it is displayed.
itemsHeaderSummary[]Set headerSummary.
visiblebooleanVisibility
visibleCountnumberReturns the number of headerSummaries whose visibility is true among the currently set headerSummaries.

Properties Desc

count

Returns the number of currently set headerSummary.

Type - number


get

Returns the headerSummary of the corresponding index.

Type - (index: number) => HeaderSummary

Remarks:

Returns HeaderSummary.


getVisible

Retrieves the headerSummary corresponding to the order in which it is displayed.

Type - (index: number) => HeaderSummary

Remarks:

Returns HeaderSummary.


items

Set headerSummary.

Type - HeaderSummary[]


visible

Visibility

Type - boolean


visibleCount

Returns the number of headerSummary whose visible value is true among the currently set headerSummary.

Type - number