nv-datagrid is deprecated. The anatomy and example below support existing
integrations. Use Datatable for new work.
Anatomy
A data grid with a checkbox column, an identifier, a text value, a link and a row action. Callout 1 marks the header row and 2 the body row.
- Header row identifies the columns and can contain selection or sorting controls.
- Body row presents one record, with cell templates for text, links or row-specific actions.
Design variants and composition
The design defines default, hovered and selected rows in Spark and Ocean. Header cells contain a label or a selection checkbox, with optional sorting and help icons. Body cells cover actions, avatars, status/category labels, selection, links, monospaced identifiers and text with an optional subtitle.
Figma offers column partials with ten body cells and nine preset variations,
row partials with fourteen optional cells, and independent header/body cells.
Those are design building blocks, not additional native component tags or
runtime row limits. In the legacy API, nv-datagridcolumn defines the
accessor and header, and its cell slot supplies custom content. Use native
table markup with Table for manual composition,
or Datatable for current data workflows.
The source describes full keyboard access, but custom cell controls still need their own accessible names and keyboard behavior. Check those controls in the assembled table rather than assuming row selection supplies them.
Search, select, and inspect a directory
Search for a team, move between pages, and select colleagues. Each profile action reports the person from the row, including after filtering. Searching for an unknown term shows a clear empty state; clearing the search restores the directory.
Team Directory source
The grid receives rows as a JavaScript property or the framework wrapper's typed
Data parameter. Column definitions supply headers and reusable cell templates.
The name column uses __name__ text substitution. A template action uses
data-bind-event="click:view:name"; the grid emits the action key and requested
row fields to the application handler. The framework does not attach its own
click handler to a cloned cell template.
The current grid does not render sorting controls when row selection is enabled. This composition prioritizes selection; the Table example shows application-controlled sorting.
The current grid is deprecated. This checked example supports existing grid integrations and documents the real template/event contract.
Use the framework-specific Datatable for new integrations.