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
Regards.