{#if headers}
{#each headers as header, i}
| {header} |
{/each}
{#if getRowActions !== undefined}
|
{/if}
{/if}
{#if data && keys && data.length > 0}
{#each data as row}
{@const rowActions = getRowActions?.(row)}
{#each keys as key, i}
|
{row[key] ?? ''}
|
{/each}
{#if rowActions && rowActions.length > 0}
|
{/if}
{/each}
{:else}
| Loading... |
{/if}