Contextual action on Menu items for each record

UI Components for Vue
Post Reply
gecka
Posts: 2
Joined: 30 Aug 2021, 13:51

30 Nov 2021, 09:19

Hello,

I display records from the database and need to have a contextual menu for each record. See example here.

I want:
  • to show/hide menu items based on record's can property (record.can.edit should be true to show the Update menu item in the example)
  • the menu items callback should receive the record or record.id
How am I supposed to achieve this ? Is it doable ?

Regards.

tugce.kucukoglu
Posts: 560
Joined: 23 Oct 2020, 09:28

01 Dec 2021, 09:32

Hello,

I found a solution https://codesandbox.io/s/wild-water-iof ... nuDemo.vue. I hope I understood this question correctly. This example seems to working but it is possible not an ultimate solution.

Regards,

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests