I have created a spfx webpart.Using Fluent UI DetailsList with Grouped to display list items.I am following https://developer.microsoft.com/en-us/fluentui#/controls/web/detailslist/grouped
Now I want to have a context menu with different options to action should displayed on right/left click over the item.
Please guide me on this.
Thanks in advance!
Refer to fluent ui- contextual menu to add a menu on item click. Add a function onRender in the column of the grouped list component to custom render cell and in the function define the element as a button and pass the contextual menu props to link the list and menu.
Details on how to custom render fluentui-custom render.