budibase/packages/bbui/src/Table/SelectEditRenderer.svelte

17 lines
398 B
Svelte
Raw Normal View History

<script>
import Checkbox from "../Form/Checkbox.svelte"
import ActionButton from "../ActionButton/ActionButton.svelte"
export let selected
export let onEdit
export let allowSelectRows = false
export let allowEditRows = false
</script>
{#if allowSelectRows}
<Checkbox value={selected} />
{/if}
{#if allowEditRows}
2021-04-27 16:18:52 +02:00
<ActionButton size="S" on:click={onEdit}>Edit</ActionButton>
{/if}