Skip to content

Add support for @click.right event on UTable rows to enable context menus #4259

@Ozan-Deniz

Description

@Ozan-Deniz

Description

Hello,

I've spent the last couple of hours trying to implement right-click functionality on UTable rows. I've reviewed existing issues but couldn't find a solution that fits this need.

What I want to achieve is to show a UContextMenu with actions related to the clicked row when the user right-clicks on it.

Currently, there is no way I could find to detect right-click events on individual rows along with their row data. If UTable had a #row slot or a dedicated @click.right event that provides the clicked row’s data, this would be easily achievable.

If there is any workaround or method to implement this right-click behavior on rows with access to row data, I would really appreciate if someone could share it.

Thank you!

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions