MCPcopy Create free account
hub / github.com/MADEVAL/Oat-Table / #toggleVisibleRows

Method #toggleVisibleRows

src/table.js:230–241  ·  view source on GitHub ↗
(checked)

Source from the content-addressed store, hash-verified

228 }
229
230 #toggleVisibleRows(checked) {
231 this.#visibleRows().forEach(row => {
232 const checkbox = row.querySelector('[data-table-select-row]');
233 if (checkbox && !checkbox.disabled) {
234 checkbox.checked = checked;
235 row.toggleAttribute('data-selected', checked);
236 }
237 });
238
239 this.#syncSelection();
240 this.#emitSelection();
241 }
242
243 #syncSelection() {
244 const visibleCheckboxes = this.#visibleRows()

Callers 1

#setupSelectionMethod · 0.95

Calls 3

#visibleRowsMethod · 0.95
#syncSelectionMethod · 0.95
#emitSelectionMethod · 0.95

Tested by

no test coverage detected