Loading tutorials
lightning-datatable is a base component that renders records as a table. You give it an array of row objects and an array of column definitions, and it draws the headers, rows, and cells. It also handles sorting indicators, row selection, row actions, inline editing, and column resizing, and it ra2 min readdata and key-field attributes of lightning-datatable. It assumes you can build a basic Lightning Web Component (LWC), read JavaScript arrays and objects, and wire an Apex method to a component. It also assumes you know basic Salesforce object and field names.2 min readdata and a key-field to lightning-datatable, as covered in the previous chapter.2 min readcolumns array and pass data and key-field to lightning-datatable. Both are covered in the previous chapters.2 min readlightning-datatable with a columns array, a key-field, and data loaded from a wired Apex method, as in the earlier chapters. You should also know basic JavaScript array methods and the Salesforce Lightning Design System (SLDS) utility classes.2 min readlightning-datatable, and to handle th1 min readContactTable component from the earlier chapters. That means a columns array, a data property filled by a wire, and a key-field of Id. It also assumes you can write an LWC event handler.2 min readlightning-datatable with data, columns, and a key-field, as built in the earlier chapters. It also assumes you can write an LWC event handler.2 min readlightning-datatable with a columns array and a key-field. It also assumes you know how to wire an Apex method and store the wired result, as in the earlier loading chapter.2 min readcolumns array with label, fieldName, and type, and that your table renders data with a key-field. It covers how the table decides column widths, how to override them, and the layout attributes that sit on the table itself.2 min readlightning-datatable from a wired Apex method, with a columns array and a key-field. You should also be comfortable with LWC event handlers and JavaScript destructuring.2 min readdata, columns, and key-field work on lightning-datatable. Infinite loading lets the table fetch rows in pages as the user scrolls, so the first render stays fast.2 min readupdateRecord and refreshApex.2 min readlightning-datatable cover text, numbers, dates, URLs, and more. This chapter assumes you have used columns, typeAttributes, and cellAttributes. It shows what to do when none of the built-in types can render a cell.2 min read