reachtokish / rctx-contextmenu

:bowtie: :sparkles: Context menu for React
https://reachtokish.github.io/rctx-contextmenu/
67 stars 15 forks source link

Feature-Request: Manully open and close contextmenu by exporting "callShowEvent" and "callHideEvent" #22

Open anti-held-333 opened 3 years ago

anti-held-333 commented 3 years ago

Hey, I want to dynamically open the menu because I have to handle the context menu event for a different purpose as well. By exposing "callShowEvent" and "callHideEvent" it would be able to toggle the context menu.

reachtokish commented 3 years ago

Hi @anti-held-333 , thanks for raising the feature request. To achieve your concern there are multiple scenarios we have to think about like one is, in which position do you want the context menu visible because currently it picks the position from the right click coords, another thing is we have to expose an offset prop so that dynamically we can set offset position. Let me think a bit more. Will do something very soon.

Also I'm open for accepting PRs. Thanks :)

khoakomlem commented 11 months ago

Any updates?