row_getCanExpand

Function: row_getCanExpand()

ts
function row_getCanExpand<TFeatures, TData>(row): boolean;

Defined in: features/row-expanding/rowExpandingFeature.utils.ts:319

Checks whether this row can be expanded.

options.getRowCanExpand wins when provided. Otherwise rows can expand when expanding is enabled and the row has subRows.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

row

Row\<`TFeatures`, `TData`\>

Returns

boolean

Example

ts
const canExpand = row_getCanExpand(row)