Hi Maria,
if I understand this correctly, then the action should do something with the row.
As you can't pass information to the menu action you would need to set a technical field in the the current row and then invoke the menu action.
The menu action could identify the row by the technical field and reset it so it can be used again.
The code in the first screenshot is used in a data row column of the item list. This will allow you to output HTML.
Best regards,
Daniel