mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(data-table): include border style for non-expandable rows (#864)
* fix(data-table): include border style for non-expandable rows Fixes #861 * docs(data-table): use batchExpansion for non-expandable rows example [ci skip]
This commit is contained in:
parent
ed873324e5
commit
c64075acbe
2 changed files with 3 additions and 2 deletions
|
@ -48,7 +48,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<DataTable
|
<DataTable
|
||||||
expandable
|
batchExpansion
|
||||||
nonExpandableRowIds="{rows
|
nonExpandableRowIds="{rows
|
||||||
.filter((row) => row.port < 3000)
|
.filter((row) => row.port < 3000)
|
||||||
.map((row) => row.id)}"
|
.map((row) => row.id)}"
|
||||||
|
|
|
@ -345,7 +345,8 @@
|
||||||
<TableCell
|
<TableCell
|
||||||
class="bx--table-expand"
|
class="bx--table-expand"
|
||||||
headers="expand"
|
headers="expand"
|
||||||
data-previous-value="{expandedRows[row.id]
|
data-previous-value="{!nonExpandableRowIds.includes(row.id) &&
|
||||||
|
expandedRows[row.id]
|
||||||
? 'collapsed'
|
? 'collapsed'
|
||||||
: undefined}"
|
: undefined}"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue