projects/common/a11y/roving/roving-tabindex.directive.ts
import { CngxRovingItem } from '@cngx/common/a11y'
Marker directive for items managed by CngxRovingTabindex.
CngxRovingTabindex
Place on each focusable child inside a [cngxRovingTabindex] container. The roving tabindex controller sets tabindex="0" on the active item and tabindex="-1" on all others.
[cngxRovingTabindex]
tabindex="0"
tabindex="-1"
<div cngxRovingTabindex> <button cngxRovingItem>One</button> <button cngxRovingItem>Two</button> <button cngxRovingItem>Three</button> </div>
https://cngxjs.github.io/cngx/examples/#/common/a11y/roving-tabindex/horizontal-toolbar https://cngxjs.github.io/cngx/examples/#/common/a11y/roving-tabindex/vertical-menu
[cngxRovingItem]
cngxRovingItem
boolean
Whether this item is disabled and should be skipped during navigation.
false, { alias: 'cngxRovingItemDisabled' }
void
Programmatically focus this item. Called by the parent on arrow-key navigation.
no-iframes