Is your feature request related to a problem? Please describe.
The grid container is missing the aria-colcount attribute on its wrapper element. This is important for accessibility, especially for screen readers to announce the total number of columns in the grid.
Currently, we have an updateRowCount() method which sets aria-rowcount. We need a similar mechanism for the column count.
This is also a prerequisite for testing buffered columns.
Describe the solution you'd like
- Add
'aria-colcount': 0 to the grid's wrapper vdom node in src/grid/Container.mjs.
- Create a new method
updateColCount() which sets the aria-colcount attribute based on the columns.count reactive property and triggers a me.update().
- The
columns collection gets a mutate listener assigned directly within createColumns(). This listener calls onColumnsMutate().
- A new
onColumnsMutate() method calls updateColCount() whenever columns are added or removed from the collection at runtime.
- Call
updateColCount() at the end of construct() to set the initial value.
- Call
updateColCount() inside afterSetColumns() to handle cases where the entire columns config is replaced.
Is your feature request related to a problem? Please describe. The grid container is missing the
aria-colcountattribute on its wrapper element. This is important for accessibility, especially for screen readers to announce the total number of columns in the grid.Currently, we have an
updateRowCount()method which setsaria-rowcount. We need a similar mechanism for the column count.This is also a prerequisite for testing buffered columns.
Describe the solution you'd like
'aria-colcount': 0to the grid's wrapper vdom node insrc/grid/Container.mjs.updateColCount()which sets thearia-colcountattribute based on thecolumns.countreactive property and triggers ame.update().columnscollection gets amutatelistener assigned directly withincreateColumns(). This listener callsonColumnsMutate().onColumnsMutate()method callsupdateColCount()whenever columns are added or removed from the collection at runtime.updateColCount()at the end ofconstruct()to set the initial value.updateColCount()insideafterSetColumns()to handle cases where the entire columns config is replaced.