+ toggleColumnClick(event) {
+ event.preventDefault();
+
+ const tableCell = event.target.closest('th,td');
+ const colIndex = Array.from(tableCell.parentElement.children).indexOf(tableCell);
+ const tableRows = tableCell.closest('table').querySelectorAll('tr');
+ const inputsToToggle = [];
+
+ for (let row of tableRows) {
+ const targetCell = row.children[colIndex];
+ if (targetCell) {
+ inputsToToggle.push(...targetCell.querySelectorAll('input[type=checkbox]'));
+ }
+ }
+ this.toggleAllInputs(inputsToToggle);
+ }
+