Create a pop-up menu with right click about an object

前端 未结 1 905
天涯浪人
天涯浪人 2021-01-14 05:57

I want to know if it is possible create a pop-up menu with right click in a web page using R-Shiny, and how create menu with submenus?

I was testing with this code b

相关标签:
1条回答
  • 2021-01-14 06:22

    I have a package called shinyBS that adds many twitter bootstrap components to the shiny interface.

    I've been working on an update that adds new menu-creating functions, one of which is to create right-click context menus in shiny apps. The update isn't ready for release yet but if you want to see where it stands you can install the 'menu-integration' branch of shinyBS from github:

    devtools::install_github("shinyBS", "ebailey78", "menu-integration")

    once installed, you can see the demo I've been working on by running:

    shinyBS::bsDemo("menubar")

    Right-click the plot to see the context menu in action... I would love any feedback you have!

    0 讨论(0)
提交回复
热议问题