{#if schema} {#each columns as field}
{schema[field].name}
{#if schema[field].type === 'options'}
Choose an option
{#each schema[field].constraints.inclusion as opt}
{opt}
{/each}
{:else if schema[field].type === 'datetime'}
{:else if schema[field].type === 'boolean'}
{:else if schema[field].type === 'number'}
{:else if schema[field].type === 'string'}
{/if}
{/each} {/if}
{ search = {} page = 0 }}> Reset
fetchData(table)}>Search
{#if rows.length > 0} {#if $component.children === 0 && $builderStore.inBuilder}
Add some components too
{:else} {#each rows as row}
{/each} {/if} {:else if loaded && $builderStore.inBuilder}
Feed me some data
{:else}
{noRowsMessage}
{/if}
{#if page > 0}
Back
{/if} {#if rows.length === pageSize}
Next
{/if}