Methods · 6
addOpenMenu(id: string, contextId?: string): voidMark a menu open. Opening an already-open menu changes nothing.
clearOpenMenus(contextId?: string): voidClose every menu in a context.
deleteOpenMenu(id: string, contextId?: string): voidMark a menu closed. Closing a menu that is not open changes nothing.
getIsMenuOpen(contextId?: string): booleanWhether any menu is open in a context.
getOpenMenus(contextId?: string): string[]Open menu ids for a context, in the order they were opened.
isMenuOpen(id: string, contextId?: string): booleanmocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.