@highcharts/dashboards
Version:
Highcharts Dashboards framework
57 lines (56 loc) • 977 B
JavaScript
/* *
*
* (c) 2009-2026 Highsoft AS
*
* Integration of this software requires a license.
* - For commercial use, see www.highcharts.com/license
* - For non-commercial, see www.highcharts.com/license-eula
*
*
* Authors:
* - Sebastian Bochan
*
* */
;
/* *
*
* Functions
*
* */
/* *
*
* Class
*
* */
class DashboardsAccessibility {
/* *
*
* Constructor
*
* */
constructor(board) {
this.board = board;
this.addTabIndexToCells();
}
/* *
*
* Functions
*
* */
addTabIndexToCells() {
const components = this.board.mountedComponents;
let cell;
for (let i = 0, iEnd = components.length; i < iEnd; ++i) {
cell = components[i].cell;
if (cell && cell.container) {
cell.container.setAttribute('tabindex', -1);
}
}
}
}
/* *
*
* Default Export
*
* */
export default DashboardsAccessibility;