Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@hover event for UTable rows #2435

Open
remihuigen opened this issue Oct 22, 2024 · 1 comment
Open

@hover event for UTable rows #2435

remihuigen opened this issue Oct 22, 2024 · 1 comment
Labels
question Further information is requested

Comments

@remihuigen
Copy link

For what version of Nuxt UI are you asking this question?

v2.x

Description

I'm wondering if there is an event (similar to @select) for hovering over a table row?

I want to show a popover panel upon hovering over a row

My current workaround is to insert an action column, and wrap it in a UPopover component. But preferably, the entire row should act as a trigger

Any suggestions?

<template #preview-data="{ row }">
      <UPopover 
        mode="hover" 
        :open-delay="300" 
        :disabled="isMounted && !grid.sm"
        :ui="{
          ring: 'dark:ring-gray-700'
        }"
      >
        <UButton icon="i-heroicons-identification-20-solid" color="purple" square />

        <template #panel>
         <RegioloketPreview 
          :data="row"
        />
        </template>
      </UPopover>
    </template>

Image

@remihuigen remihuigen added the question Further information is requested label Oct 22, 2024
@rdjanuar
Copy link
Collaborator

rdjanuar commented Nov 5, 2024

For now the table only supports the @select event but in the future there is a possibility that there will be @hover, @contextmenu, etc. events. @remihuigen

@rdjanuar rdjanuar assigned rdjanuar and unassigned rdjanuar Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants