context_menuItem: context_menuItem

View source: R/contextmenu.R

context_menuItemR Documentation

context_menuItem

Description

context_menuItem

Usage

context_menuItem(text, callback = NULL, ...)

Arguments

text

The label to use for the menu item

callback

A callback function to be invoked when the menu item is clicked. The callback is passed an object with properties identifying the location the menu was opened at: latlng, layerPoint and containerPoint. The callback-function must be valid JavaScript and will be wrapped in JS.

...

For further options please visit https://github.com/aratcliffe/Leaflet.contextmenu

Value

A contextmenu item list

See Also

Other Contextmenu Functions: addContextmenu(), addItemContextmenu(), context_mapmenuItems(), context_markermenuItems(), disableContextmenu(), enableContextmenu(), hideContextmenu(), insertItemContextmenu(), mapmenuItems(), markermenuItems(), menuItem(), removeItemContextmenu(), removeallItemsContextmenu(), setDisabledContextmenu(), showContextmenu()


leaflet.extras2 documentation built on Aug. 21, 2023, 5:08 p.m.