{#each table.getHeaderGroups() as headerGroup (headerGroup.id)} {#each headerGroup.headers as header (header.id)} {#if !header.isPlaceholder} {/if} {/each} {/each} {#each table.getRowModel().rows as row (row.id)} { const rowId = getRowIdValue(row.original); if (rowId !== null) { toggleSelectedId(rowId); } }} ondblclick={() => onRowDoubleClick?.(row.original)} class="cursor-pointer hover:bg-muted/50 transition-colors {row.getIsSelected() ? 'bg-primary/10' : ''}" > {#each row.getVisibleCells() as cell (cell.id)} {/each} {:else} {#if loading}

Cargando...

{:else} No hay resultados. {/if}
{/each}