Newer Version Available

This content describes an older version of this product. View Latest

Build Custom Tables for Service Documents with LWCs

Build custom tables for Document Builder with Lightning web components (LWCs).

While Document Builder offers a standard component to create tables for related records, you can also build your own custom tables to suit your company’s needs.

Design Your Table to Show Data Properly

To ensure that your tables show data properly, use HTML tables to build your LWC for custom tables. The right HTML table formatting organizes your data properly, even when the table overflows or breaks between pages. If information in the table does overflow, column headers repeat on the next page.

Here’s a sample markup that calls out the header row, ensuring that the header is repeated across pages.

Example