Add subject prop
This commit is contained in:
parent
ba5116e6bc
commit
8fae013203
|
@ -9,4 +9,5 @@
|
||||||
{...$$props}
|
{...$$props}
|
||||||
on:change={e => dispatch("change", e.detail)}
|
on:change={e => dispatch("change", e.detail)}
|
||||||
allowCellEditing={false}
|
allowCellEditing={false}
|
||||||
|
subject="Dynamic Filter"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
export let componentInstance
|
export let componentInstance
|
||||||
export let value = []
|
export let value = []
|
||||||
export let allowCellEditing = true
|
export let allowCellEditing = true
|
||||||
|
export let subject = "Table"
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
|
@ -69,9 +70,9 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ActionButton on:click={open}>Configure columns</ActionButton>
|
<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">
|
<svelte:fragment slot="description">
|
||||||
Configure the columns in your table.
|
Configure the columns in your {subject.toLowerCase()}.
|
||||||
</svelte:fragment>
|
</svelte:fragment>
|
||||||
<Button cta slot="buttons" on:click={save}>Save</Button>
|
<Button cta slot="buttons" on:click={save}>Save</Button>
|
||||||
<ColumnDrawer
|
<ColumnDrawer
|
||||||
|
|
Loading…
Reference in New Issue