Skip to content

closeView(viewId: string): void

Close a specific view with id(contentId) with all nested sub-menu

Example

const menuViewController = document.querySelector('s-menu').viewController;

viewController.closeView('my-menu-content');