columns in tables list

This commit is contained in:
Jan Prochazka
2021-03-01 20:27:09 +01:00
parent ea05ae0079
commit ad0e02de5d
8 changed files with 74 additions and 7 deletions

View File

@@ -26,6 +26,10 @@
}
}
function handleExpandButton() {
isExpanded = !isExpanded;
}
$: expandable = data && isExpandable && isExpandable(data);
$: if (!expandable && isExpanded) isExpanded = false;
@@ -35,7 +39,7 @@
this={module.default}
{data}
on:click={handleExpand}
on:expand={handleExpand}
on:expand={handleExpandButton}
expandIcon={getExpandIcon(expandable, subItemsComponent, isExpanded, expandIconFunc)}
/>