react-checkbox-tree icon indicating copy to clipboard operation
react-checkbox-tree copied to clipboard

right click event

Open arbabi2010 opened this issue 4 years ago • 1 comments

Hi , I want to right click on items and open menu for it. it is possible to use onContextMenu for every items?

arbabi2010 avatar Nov 08 '20 09:11 arbabi2010

This is not supported natively by the component. However, since the label property for a node can be a React element, you should be able to add a context menu to any node's label.

It may make sense for this component to support a listItemProps property for nodes such that you can add any arbitrary properties to the node's <li> item (including onContextMenu).

jakezatecky avatar Nov 08 '20 10:11 jakezatecky