1
0
Fork 0
mirror of synced 2024-07-07 15:25:52 +12:00

Add subject prop

This commit is contained in:
Mel O'Hagan 2022-11-21 15:11:21 +00:00
parent ba5116e6bc
commit 8fae013203
2 changed files with 4 additions and 2 deletions

View file

@ -9,4 +9,5 @@
{...$$props}
on:change={e => dispatch("change", e.detail)}
allowCellEditing={false}
subject="Dynamic Filter"
/>

View file

@ -12,6 +12,7 @@
export let componentInstance
export let value = []
export let allowCellEditing = true
export let subject = "Table"
const dispatch = createEventDispatcher()
@ -69,9 +70,9 @@
</script>
<ActionButton on:click={open}>Configure columns</ActionButton>
<Drawer bind:this={drawer} title="Table Columns">
<Drawer bind:this={drawer} title="{subject} Columns">
<svelte:fragment slot="description">
Configure the columns in your table.
Configure the columns in your {subject.toLowerCase()}.
</svelte:fragment>
<Button cta slot="buttons" on:click={save}>Save</Button>
<ColumnDrawer