Use AbsTooltip

This commit is contained in:
Adria Navarro 2024-05-30 10:07:17 +02:00
parent a289ef31d1
commit 8b22beb0a2
1 changed files with 12 additions and 11 deletions

View File

@ -3,7 +3,7 @@
let dispatch = createEventDispatcher() let dispatch = createEventDispatcher()
import { ActionButton } from "@budibase/bbui" import { ActionButton, AbsTooltip, TooltipType } from "@budibase/bbui"
export let value export let value
export let options export let options
@ -12,6 +12,7 @@
<div class="permissionPicker"> <div class="permissionPicker">
{#each options as option} {#each options as option}
<AbsTooltip text={option.tooltip} type={TooltipType.Info}>
<ActionButton <ActionButton
on:click={() => dispatch("click", option.value)} on:click={() => dispatch("click", option.value)}
{disabled} {disabled}
@ -20,8 +21,8 @@
quiet quiet
selected={option.value === value} selected={option.value === value}
noPadding noPadding
tooltip={option.tooltip}
/> />
</AbsTooltip>
{/each} {/each}
</div> </div>