UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

18 lines (17 loc) 511 B
export const makeRowSelectAll = (grid) => { return (p) => { let stop = false; grid.api.eventFire("rowSelectAllBegin", { deselect: p?.deselect ?? false, grid, preventDefault: () => { stop = true; }, }); if (stop) return; const rds = grid.state.rowDataSource.get(); rds.rowSelectAll(p ?? {}); grid.api.eventFire("rowSelectAllEnd", { deselect: !!p?.deselect, grid }); }; };