A right-click menu over a target area. input$<inputId> is the value of the
last activated item.
See also
Other shadshiny tier-3 components:
shad_accordion(),
shad_alert_dialog(),
shad_carousel(),
shad_collapsible(),
shad_command(),
shad_command_palette(),
shad_dialog(),
shad_drawer(),
shad_dropdown_menu(),
shad_hover_card(),
shad_menu_parts,
shad_menubar(),
shad_message_scroller(),
shad_navigation_menu(),
shad_pagination(),
shad_popover(),
shad_resizable(),
shad_scroll_area(),
shad_sheet(),
shad_sidebar_layout(),
shad_tabs(),
shad_tooltip()
Examples
shad_context_menu("cm", target = htmltools::div("Right click here"),
shad_menu_item("back", "Back"), shad_menu_item("reload", "Reload"))
#> <div data-shad="context-menu" id="cm">
#> <div class="shad-context-menu__zone">
#> <div>Right click here</div>
#> </div>
#> <div class="shad-menu__content shad-anim-pop" hidden>
#> <button type="button" class="shad-menu__item" data-value="back">Back</button>
#> <button type="button" class="shad-menu__item" data-value="reload">Reload</button>
#> </div>
#> </div>