Bulk Select
Master checkbox, row checks, and a toolbar that swaps New for bulk actions.
| Name | Age | ||
|---|---|---|---|
| Anna | [email protected] | 18 | |
| Homer | [email protected] | 35 | |
| Oscar | [email protected] | 52 | |
| Emily | [email protected] | 30 | |
| Jara | [email protected] | 25 |
[]
Important JavaScript
function getSelectedRows() {
return Array.from(rowChecks)
.filter(function (box) { return box.checked; })
.map(function (box) { return JSON.parse(box.dataset.row); });
}