Skip to content

Commit

Permalink
fix(table): simplify auto-collapse attribute usage in expandable rows
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrook committed Oct 16, 2024
1 parent b77bd1d commit 64a9c4c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@
<tds-header-cell cell-key="mileage" cell-value="Mileage" text-align="right"></tds-header-cell>
</tds-table-header>
<tds-table-body>
<tds-table-body-row-expandable row-id="1" auto-collapse="true">
<tds-table-body-row-expandable row-id="1" auto-collapse>
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
<tds-body-cell cell-value="Test value 4" cell-key="mileage" text-align="right"></tds-body-cell>
<div slot="expand-row">Hello world 1</div>
</tds-table-body-row-expandable>
<tds-table-body-row-expandable row-id="2" auto-collapse="true">
<tds-table-body-row-expandable row-id="2" auto-collapse>
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
<tds-body-cell cell-value="Test value 8" cell-key="mileage" text-align="right"></tds-body-cell>
<div slot="expand-row">Hello to you too</div>
</tds-table-body-row-expandable>
<tds-table-body-row-expandable row-id="3" auto-collapse="true">
<tds-table-body-row-expandable row-id="3" auto-collapse>
<tds-body-cell cell-value="Test value 9" cell-key="truck"></tds-body-cell>
<tds-body-cell cell-value="Test value 10" cell-key="driver"></tds-body-cell>
<tds-body-cell cell-value="Test value 11" cell-key="country"></tds-body-cell>
Expand Down

0 comments on commit 64a9c4c

Please sign in to comment.