diff --git a/packages/standard-components/manifest.json b/packages/standard-components/manifest.json index 65fcec339b..b4914cb284 100644 --- a/packages/standard-components/manifest.json +++ b/packages/standard-components/manifest.json @@ -1514,6 +1514,7 @@ "name": "Table", "icon": "ri-table-line", "styleable": true, + "hasChildren": true, "settings": [ { "type": "dataProvider", @@ -1579,6 +1580,10 @@ } ] } - ] + ], + "dataContext": { + "type": "schema", + "dataProviderSetting": "dataProvider" + } } } diff --git a/packages/standard-components/src/table/Table.svelte b/packages/standard-components/src/table/Table.svelte index abd2933c3c..02e3b4e968 100644 --- a/packages/standard-components/src/table/Table.svelte +++ b/packages/standard-components/src/table/Table.svelte @@ -11,7 +11,7 @@ export let rowCount const component = getContext("component") - const { styleable } = getContext("sdk") + const { styleable, Provider } = getContext("sdk") let sortColumn let sortOrder @@ -85,6 +85,11 @@ + {#if $component.children} + + {/if} {#each fields as field} + {#if $component.children} + + {/if} {#each fields as field}
+
+
{#each sortedRows as row}
+
+ + + +
+