{#if dbTableOps.onInsert} { if (!$workspaceStore) return dbTableOps.onInsert?.({ values }).then((result) => { refresh?.() sendUserToast('Row inserted') }) }} /> {/if}
{ if ((e.ctrlKey || e.metaKey) && e.key === 'c') { const selectedCell = api?.getFocusedCell() if (selectedCell) { const rowIndex = selectedCell.rowIndex const colId = selectedCell.column?.getId() const rowNode = api?.getDisplayedRowAtIndex(rowIndex) const selectedValue = rowNode?.data?.[colId] navigator.clipboard.writeText(selectedValue) sendUserToast('Copied cell value to clipboard', false) } } }} >
{#snippet text()} Download {/snippet}
{#if rowCount} {firstRow}{'->'}{lastRow + 1} of {rowCount} rows {:else} {firstRow}{'->'}{lastRow + 1} {/if}