The container for a grid. It provides keyboard navigation and focus management for the grid's rows and cells. It manages the overall behavior of the grid, including focus wrapping, selection, and disabled states.
element
HTMLElementA reference to the host element.
textDirection
anyText direction.
enableSelection
anyWhether selection is enabled for the grid.
disabled
anyWhether the grid is disabled.
softDisabled
anyWhether to allow disabled items to receive focus. When true, disabled items are
focusable but not interactive. When false, disabled items are skipped during navigation.
focusMode
anyThe focus strategy used by the grid.
roving: Focus is moved to the active cell usingtabindex.activedescendant: Focus remains on the grid container, andaria-activedescendantis used to indicate the active cell.
rowWrap
anyThe wrapping behavior for keyboard navigation along the row axis.
continuous: Navigation wraps from the last row to the first, and vice-versa.loop: Navigation wraps within the current row.nowrap: Navigation stops at the first/last item in the row.
colWrap
anyThe wrapping behavior for keyboard navigation along the column axis.
continuous: Navigation wraps from the last column to the first, and vice-versa.loop: Navigation wraps within the current column.nowrap: Navigation stops at the first/last item in the column.
multi
anyWhether multiple cells in the grid can be selected.
selectionMode
anyThe selection strategy used by the grid.
follow: The focused cell is automatically selected.explicit: Cells are selected explicitly by the user (e.g., via click or spacebar).
enableRangeSelection
anyWhether enable range selections (with modifier keys or dragging).
Description
The container for a grid. It provides keyboard navigation and focus management for the grid's rows and cells. It manages the overall behavior of the grid, including focus wrapping, selection, and disabled states.
<table ngGrid [multi]="true" [enableSelection]="true">