Row expander
Button that expands/collapses table rows
Demo
Header 1 | Header 2 | |||||||
---|---|---|---|---|---|---|---|---|
|
Cell text | Cell text | ||||||
|
||||||||
|
Cell text | Cell text | ||||||
Additional content related to the row above |
API
Tag
Name | Description |
<s-row-expander>
|
Custom element |
Attributes
Name | Value | Required | Description |
rowid |
string |
|
The |
expanded |
Boolean attribute |
Indicates that the associated row should be expanded. |
Properties
Name | Value | Required | Description |
rowId |
string |
|
The |
expanded |
Boolean attribute |
Indicates that the associated row should be expanded. |
Demo
API
Tag
Name |
<SRowExpander>
|
Props
Name | Value | Required | Description |
---|---|---|---|
rowId |
string |
The |
|
expanded |
Boolean |
Indicates that the associated row should be expanded. |
Skylab React links
Guidelines
Parent element required
The row expander component must be enclosed in a <td>
or <th>
element.
Use .hidden class
Add the hidden
class to all rows that should be collapsed on initial page load.
Design
Design resources can be found on the Skylab design documentation site: skylab.avalara.com