Skip to content

openView(viewId: string): void

Open a specific view with id(contentId) if exists and close previous depends on breakpoint e.g. on desktop headerlinks are always visible as well as sidebar.

Example

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

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