MCPcopy Create free account
hub / github.com/handsontable/handsontable / #updateAriaColcount

Method #updateAriaColcount

handsontable/src/tableView.ts:2071–2075  ·  view source on GitHub ↗

* Update the `aria-colcount` attribute by the provided value. * * @param {number} delta The number of columns to add or remove to the aria tag.

(delta: number)

Source from the content-addressed store, hash-verified

2069 * @param {number} delta The number of columns to add or remove to the aria tag.
2070 */
2071 #updateAriaColcount(delta: number) {
2072 const colCount = this.#getAriaColcount() + delta;
2073
2074 setAttribute(this.hot.rootElement, [A11Y_COLCOUNT(colCount)]);
2075 }
2076
2077 /**
2078 * Updates the class names on the root element based on the presence of scrollbars.

Callers 1

initializeWalkontableMethod · 0.95

Calls 3

#getAriaColcountMethod · 0.95
setAttributeFunction · 0.90
A11Y_COLCOUNTFunction · 0.90

Tested by

no test coverage detected