diff --git a/packages/bbui/src/Table/Table.svelte b/packages/bbui/src/Table/Table.svelte index 973756bf4a..d4731e84aa 100644 --- a/packages/bbui/src/Table/Table.svelte +++ b/packages/bbui/src/Table/Table.svelte @@ -14,8 +14,7 @@ export let allowEditRows = true export let allowEditColumns = true export let selectedRows = [] - export let customColumnRenderer = SelectEditRenderer - export let customColumnTitle = null + export let editColumnTitle = "Edit" export let customRenderers = [] const dispatch = createEventDispatcher() @@ -41,6 +40,7 @@ $: contentStyle = getContentStyle(visibleRowCount, scroll || !loaded) $: sortedRows = sortRows(rows, sortColumn, sortOrder) $: fields = getFields(schema, showAutoColumns) + $: showEditColumn = allowEditRows || allowSelectRows // Scrolling state let timeout @@ -155,10 +155,10 @@
- {customColumnTitle || ''}
+ {editColumnTitle || ''}
|
{/if}
@@ -208,12 +208,11 @@
class="spectrum-Table-row"
class:hidden={idx < firstVisibleRow || idx > lastVisibleRow}>
{#if idx >= firstVisibleRow && idx <= lastVisibleRow}
- {#if customColumnRenderer}
+ {#if showEditColumn}
- |
---|