{#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}
fetchData(table)}>Search
{ search = {} fetchData(table) }}> Reset
{#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}
{noRowsMessage}
{/if}
{#if page > 1}
(page -= 1)}>Back
{/if}
(page += 1)}>Next