These recipes exemplify the usage of the lightning-datatable
standard component, using Apex functions and adapters for retrieving and storing back the data.
There is one LWC to demo how to create a custom data type, so we can create new types when the standards are not enough.
LWC Datatable Inline with UI API (datatableInlineEditWithUiApi
)
LWC Datatable Inline Edit with Apex (datatableInlineEditWithApex
)
LWC Datatable Custom Data Type (datatableCustomDataType)
The lightning-datatable
is one of the most powerful and widely used Lightning base components, able to display tabular data where each column renders the content based on the data type specified, which improves the formatting and the user experience.
You can watch a very simple demo here:
lightning-datatable
features include: