Every row on the page is selected (header checkbox = checked).
Drop the given ids from the selection, leaving the rest ticked.
Some but not all rows selected (header checkbox = indeterminate).
Toggle one row; pass range: true (Shift) to extend from the last anchor.
Select every row on the page, or clear if all are already selected.
Multi-row selection for a list table, per page: it clears whenever the server hands down a new set of rows, so a stale key never acts on a row the operator can no longer see.
toggletakes the row index so Shift-click can extend a range from the last-toggled anchor. Rows sharing agetGroupvalue are ticked and unticked together.