Skip to content

Commit

Permalink
fix: update text button callbacks for DataTableCell
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreminger committed Dec 27, 2024
1 parent 03cd489 commit 61013a3
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/DataTableCell.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -530,20 +530,30 @@
</style>

<div class="top-buttons">
<TextButton on:click={handleLoadSpreadsheet}>
<TextButton
onclick={handleLoadSpreadsheet}
>
Import Spreadsheet
</TextButton>
<TextButton on:click={handleExportCSV}>
<TextButton
onclick={handleExportCSV}
>
Export CSV
</TextButton>
<TextButton on:click={copyData}>
<TextButton
onclick={copyData}
>
{copyButtonText}
</TextButton>
{#if numInputs >= 2}
<TextButton on:click={() => handleAddInterpolationFunction('interpolation')}>
<TextButton
onclick={() => handleAddInterpolationFunction('interpolation')}
>
Add Interpolation
</TextButton>
<TextButton on:click={() => handleAddInterpolationFunction('polyfit')}>
<TextButton
onclick={() => handleAddInterpolationFunction('polyfit')}
>
Add Polyfit
</TextButton>
{/if}
Expand Down

0 comments on commit 61013a3

Please sign in to comment.