Navbar of the NgDoc application: the header bar above the sidebar and the page.
It lays out, from left to right: the menu button (only where the sidebar is an overlay), the content marked with ngDocNavbarLeft (for example the logo), the content marked with ngDocNavbarCenter (for example the section links, hidden at 1024px and below), the search, and the content marked with ngDocNavbarRight (for example the theme toggle).
- Decorators
@Component - Selectors
ng-doc-navbar
DeclarationTypeScript
@Component ({ … })
export class NgDocNavbarComponent { … }Members
Properties4 | |
glassEffect: | Use glass effect for navbar |
hamburger: | Show the menu button that opens the sidebar where it is an overlay (900px and below). |
search: | Show search input |
sidebarService: | — |
Methods1 | |
(): void | Closes the sidebar overlay and moves focus back to the menu button that opened it. |
Signature Returns void | |
No members match.
Example usage
<ng-doc-navbar >
<a ngDocNavbarLeft routerLink="/">My library</a>
<nav ngDocNavbarCenter aria-label="Primary"><a routerLink="/docs">Guides</a></nav>
<ng-doc-theme-toggle ngDocNavbarRight />
</ng-doc-navbar >