the number of menus in the JOSM menu bar
Name | Type | Description |
---|---|---|
length |
number | the number of menues |
import josm from 'josm' // display the number of menus josm.alert(josm.menu.length)
Name | Type | Description |
---|---|---|
menuNames |
array | the names of the menues in the menu bar |
Replies a menu in the JOSM menu bar.
key
is either a numberic index or one of the following
symbolic names as string:
file
edit
view
tools
presets
imagery
window
help
Name | Type | Description |
---|---|---|
key |
number | string | the key denoting the menu |
import josm from 'josm' // get the edit menu with a numeric index const editMenu = josm.menu.get(1) // get the file menu with a symbolic name const fileMenu = josm.menu.get('file')