Skip to content

Data Table

Last updated 18 Nov 2026

NbDataTable is a presentational, data-driven table for read-mostly application lists. It ships full <table> semantics, controlled sorting, row selection, loading / empty / error states, density options, a sticky header with horizontal scroll, and a companion NbPagination footer.

It is deliberately not an editable spreadsheet. When cells need in-place editing, reach for NbSpreadsheet instead.

Live demo ​

Content ​

  • Column titles are one or two words, sentence case, nouns: Owner, Last updated. A unit goes in the title, not in every cell: Size (MB).
  • A long cell keeps its full text reachable. Headers and cells do not wrap, so a clipped value needs a title or a tooltip, or a narrower neighbouring column.
  • Empty and failed are different sentences. empty-message names what is missing (No invoices yet). A failed load passes error (or error: true for the default Could not load the data), never the empty copy.
  • Batch actions are verb phrases, and the selection count is the catalogue's 12 selected, not a sentence you build.

Casing, punctuation and tone are set library-wide, not by this component: Writing style is the source.