Loading
×Sorry to interrupt
CSS Error
Lightning Web Component

Datatable

  • A table that displays rows and columns of data.

    Descriptor

    lightning-datatable

    Targets

    Lightning Experience, Experience Builder Sites, Standalone Lightning App

Component examples use older versions of SLDS and base Lightning components. Recent color updates for accessibility aren't reflected in the examples. See the Lightning Web Components Developer Guide for more information.

A basic data table that fetches data during initialization. Set the server data on the data attribute. Display data based on the data type by defining the columns object.
Example
Documentation
Specification