@serenity-is/sleekgrid / Group

Class: Group<TEntity>

Information about a group of rows.

Type parameters

Name Type
TEntity any

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Group<TEntity>(): Group<TEntity>

Type parameters

Name Type
TEntity any

Returns

Group<TEntity>

Inherited from

NonDataRow.constructor

Properties

__group

Readonly __group: true

Defined in

core/group.ts:7


__nonDataRow

__nonDataRow: boolean = true

Inherited from

NonDataRow.__nonDataRow

Defined in

core/base.ts:5


collapsed

collapsed: boolean = false

Whether a group is collapsed.

Defined in

core/group.ts:42


count

count: number = 0

Number of rows in the group.

Defined in

core/group.ts:21


groupingKey

groupingKey: string

A unique key used to identify the group. This key can be used in calls to DataView collapseGroup() or expandGroup().

Defined in

core/group.ts:71


groups

groups: Group<TEntity>[]

Sub-groups that are part of the group.

Defined in

core/group.ts:63


level

level: number = 0

Grouping level, starting with 0.

Defined in

core/group.ts:14


rows

rows: TEntity[] = []

Rows that are part of the group.

Defined in

core/group.ts:56


title

title: string

Formatted display value of the group.

Defined in

core/group.ts:35


totals

totals: GroupTotals<TEntity>

GroupTotals, if any.

Defined in

core/group.ts:49


value

value: any

Grouping value.

Defined in

core/group.ts:28

Methods

equals

equals(group): boolean

Compares two Group instances.

Parameters

Name Type Description
group Group<any> Group instance to compare to.

Returns

boolean

Method

equals

Defined in

core/group.ts:80