column editor

This commit is contained in:
Jan Prochazka
2021-06-10 15:57:37 +02:00
parent 697a9438c6
commit 870e3ad666
4 changed files with 48 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
export let collection;
export let columns;
export let showIfEmpty = false;
export let clickable;
</script>
@@ -24,6 +25,8 @@
},
...columns,
]}
{clickable}
on:clickrow
>
<svelte:fragment slot="-1" let:row>
<slot name="name" {row} />
@@ -75,4 +78,5 @@
.body {
margin: 20px;
}
</style>