1
0
Fork 0
mirror of synced 2024-09-21 03:43:21 +12:00

Select row when opening row actions popover

This commit is contained in:
Andrew Kingston 2024-09-03 15:14:40 +01:00
parent 789df301cb
commit 0e6d903c74
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View file

@ -26,6 +26,7 @@
icon="ChevronDown" icon="ChevronDown"
cta cta
on:click={() => popover?.show()} on:click={() => popover?.show()}
on:click
> >
{text || "Action"} {text || "Action"}
</Button> </Button>
@ -36,6 +37,8 @@
{offset} {offset}
{animate} {animate}
resizable={false} resizable={false}
on:close
on:open
> >
<Menu> <Menu>
{#each buttons as button} {#each buttons as button}

View file

@ -92,6 +92,8 @@
offset={5} offset={5}
size="S" size="S"
animate={false} animate={false}
on:open={() => selectedRows.set({ [row._id]: true })}
on:close={() => selectedRows.set({})}
/> />
{:else} {:else}
{#each buttons as button} {#each buttons as button}