Skip to content

@serenity-is/corelib / GridSelectAllButtonHelper / update

Function: update()

update(grid, getSelected): void

Defined in: src/ui/helpers/gridselectallbuttonhelper.tsx:16

Updates the checked state of the select-all button based on whether all items in the grid are selected.

Parameters

grid

IDataGrid

The data grid.

getSelected

(p1) => boolean

A function that returns whether an item is selected.

Returns

void