Skip to content

@hover event for UTable rows #2435

@remihuigen

Description

@remihuigen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedv3#1289wontfix-v2This will not be fixed in `v2.x`.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions