Select row when opening row actions popover
This commit is contained in:
parent
789df301cb
commit
0e6d903c74
|
@ -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}
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue