Enable/Disable a contextmenu item by index.
Arguments
- map
a map widget object created from
leaflet
- index
Index of the contextmenu. (NOTE: Since the index is passed to JavaScript, it is zero-based)
- disabled
Set to
TRUE
to disable the element andFALSE
to enable it. Default isTRUE
See also
Other Contextmenu Functions:
addContextmenu()
,
addItemContextmenu()
,
context_mapmenuItems()
,
context_markermenuItems()
,
context_menuItem()
,
disableContextmenu()
,
enableContextmenu()
,
hideContextmenu()
,
insertItemContextmenu()
,
mapmenuItems()
,
markermenuItems()
,
menuItem()
,
removeItemContextmenu()
,
removeallItemsContextmenu()
,
showContextmenu()