LearnNewsExamplesServices
Frontmatter
id7190
titleGrid aria-colcount
stateClosed
labels
enhancement
assigneestobiu
createdAtAug 14, 2025, 11:55 AM
updatedAtAug 14, 2025, 11:56 AM
githubUrlhttps://github.com/neomjs/neo/issues/7190
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtAug 14, 2025, 11:56 AM

Grid aria-colcount

Closed v10.5.2 enhancement
tobiu
tobiu commented on Aug 14, 2025, 11:55 AM

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

  1. Add 'aria-colcount': 0 to the grid's wrapper vdom node in src/grid/Container.mjs.
  2. Create a new method updateColCount() which sets the aria-colcount attribute based on the columns.count reactive property and triggers a me.update().
  3. The columns collection gets a mutate listener assigned directly within createColumns(). This listener calls onColumnsMutate().
  4. A new onColumnsMutate() method calls updateColCount() whenever columns are added or removed from the collection at runtime.
  5. Call updateColCount() at the end of construct() to set the initial value.
  6. Call updateColCount() inside afterSetColumns() to handle cases where the entire columns config is replaced.
tobiu assigned to @tobiu on Aug 14, 2025, 11:55 AM
tobiu added the enhancement label on Aug 14, 2025, 11:55 AM
tobiu referenced in commit 653c73c - "Grid aria-colcount #7190" on Aug 14, 2025, 11:56 AM
tobiu closed this issue on Aug 14, 2025, 11:56 AM