2021-04-08 16:57:24 +02:00
|
|
|
<script>
|
2021-04-16 12:05:31 +02:00
|
|
|
import Checkbox from "../Form/Checkbox.svelte"
|
|
|
|
import ActionButton from "../ActionButton/ActionButton.svelte"
|
2021-04-08 16:57:24 +02:00
|
|
|
|
|
|
|
export let selected
|
|
|
|
export let onEdit
|
|
|
|
export let allowSelectRows = false
|
|
|
|
export let allowEditRows = false
|
|
|
|
</script>
|
|
|
|
|
2022-02-24 10:12:45 +01:00
|
|
|
<div>
|
|
|
|
{#if allowSelectRows}
|
|
|
|
<Checkbox value={selected} />
|
|
|
|
{/if}
|
|
|
|
{#if allowEditRows}
|
|
|
|
<ActionButton size="S" on:click={onEdit}>Edit</ActionButton>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
div {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
|
|
|
gap: var(--spacing-m);
|
|
|
|
}
|
|
|
|
</style>
|