Skip to main content
Yoummday Light Light Dark System

Table Row Exp

<sl-table-row-exp> | SlTableRowExp
Since 3.5.1 stable

Expandable table row group with a header row and optional detail rows.

See the Expandable rows example on the Table page.

Importing

If you’re using the autoloader or the traditional loader, you can ignore this section. Otherwise, feel free to use any of the following snippets to cherry pick this component.

Script Import Bundler React

To import this component from the CDN using a script tag:

<script type="module" src="https://v3-5-7.yoummday-theme.pages.dev/components/table-row-exp/table-row-exp.js"></script>

To import this component from the CDN using a JavaScript import:

import 'https://v3-5-7.yoummday-theme.pages.dev/components/table-row-exp/table-row-exp.js';

To import this component using a bundler:

import '@yoummday/ymmd-shoelace/dist/components/table-row-exp/table-row-exp.js';

To import this component as a React component:

import SlTableRowExp from '@yoummday/ymmd-shoelace/dist/react/table-row-exp';

Slots

Name Description
(default) Cells for the toggle row. Use an empty first sl-table-cell so the label aligns with the second column of detail rows.
details Detail rows (sl-table-row with slot="details").

Learn more about using slots.

Properties

Name Description Reflects Type Default
expanded When true, detail rows are visible. boolean false
updateComplete A read-only promise that resolves when the component has finished updating.

Learn more about attributes and properties.

Parts

Name Description
toggle-row The row that contains the cells and chevron.
chevron-cell The trailing cell that wraps the toggle control.
toggle-button The button that expands or collapses detail rows.

Learn more about customizing CSS parts.

Dependencies

This component automatically imports the following dependencies.

  • <sl-icon>