Skip to content

Context menu to get the row item #2684

@deepender87

Description

@deepender87

Hi
I am using context menu as a component and this component is being used in a mat table. In mat table it is being rendered for each of the row.

Issue is if I handle the click even in the context menu component using the onclick method subscription and emit and output from it. In my parent component (Mat table) when i listen this output, this gets triggered multiple times ( based on number of rows).

If I simply subscribe this event in mat table component itself, then I am not sure how to get the row data information for which i have selected the context menu item. In my case my context menu items are Delete and Download. I should know what row I am performing the action.
Can you please fix this or tell me if any work around is there?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions