Skip to content

obsidian/Menu

Mock of Obsidian’s Menu, the context menu built from items and separators.

Class Description
Menu Mock of Obsidian’s Menu. Nothing is shown: added items and separators are collected in Menu.items so a test can inspect them and invoke their click handlers, and the show and configuration methods only return the menu for chaining.
Interface Description
SectionSubmenu__ A section’s submenu, as recorded by Menu.setSectionSubmenu.