UNPKG

@1771technologies/lytenyte-pro

Version:

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

14 lines (13 loc) 369 B
export const makeRowSelected = (grid) => { return () => { const selected = grid.state.rowSelectedIds.get(); const rds = grid.state.rowDataSource.get(); const rows = []; for (const id of selected) { const row = rds.rowById(id); if (row) rows.push(row); } return rows; }; };