UNPKG

@covalent/core

Version:

Core Teradata UI Platform for layouts, icons, custom components and themes. This should be added as a dependency for any project that wants to use layouts, icons and themes for Angular Material.

105 lines (104 loc) 3.97 kB
import { Router } from '@angular/router'; import { MatSidenav, MatDrawerToggleResult } from '@angular/material/sidenav'; import { ILayoutTogglable } from '../layout-toggle.class'; import * as i0 from "@angular/core"; export declare class TdLayoutNavListComponent implements ILayoutTogglable { private _router; sidenav: MatSidenav; /** * toolbarTitle?: string * * Title set in toolbar. */ toolbarTitle?: string; /** * icon?: string * icon name to be displayed before the title */ icon?: string; /** * logo?: string * * logo icon name to be displayed before the title. * If [icon] is set, then this will not be shown. */ logo?: string; /** * color?: 'accent' | 'primary' | 'warn' * * toolbar color option: primary | accent | warn. * If [color] is not set, primary is used. */ color?: 'accent' | 'primary' | 'warn'; /** * mode?: 'side', 'push' or 'over' * * The mode or styling of the sidenav. * Defaults to "side". * See "MatSidenav" documentation for more info. * * https://github.com/angular/material2/tree/main/src/lib/sidenav */ mode: 'side' | 'push' | 'over'; /** * opened?: boolean * Whether or not the sidenav is opened. Use this binding to open/close the sidenav. * Defaults to "true". * * See "MatSidenav" documentation for more info. * * https://github.com/angular/material2/tree/main/src/lib/sidenav */ opened: boolean; /** * sidenavWidth?: string * * Sets the "width" of the sidenav in either "px" or "%" * Defaults to "350px". * * https://github.com/angular/material2/tree/main/src/lib/sidenav */ sidenavWidth: string; /** * containerAutosize?: boolean * * Sets "autosize" of the sidenav-container. * Defaults to "false". * * See documentation for more info and potential performance risks. * * https://github.com/angular/material2/blob/main/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav */ containerAutosize: boolean; /** * navigationRoute?: string * * option to set the combined route for the icon, logo, and toolbarTitle. */ navigationRoute?: string; /** * Checks if `ESC` should close the sidenav * Should only close it for `push` and `over` modes */ get disableClose(): boolean; /** * Checks if router was injected. */ get routerEnabled(): boolean; constructor(_router: Router); handleNavigationClick(): void; /** * Proxy toggle method to access sidenav from outside (from td-layout template). */ toggle(): Promise<MatDrawerToggleResult>; /** * Proxy open method to access sidenav from outside (from td-layout template). */ open(): Promise<MatDrawerToggleResult>; /** * Proxy close method to access sidenav from outside (from td-layout template). */ close(): Promise<MatDrawerToggleResult>; static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListComponent, [{ optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutNavListComponent, "td-layout-nav-list", never, { "toolbarTitle": { "alias": "toolbarTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "color": { "alias": "color"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "sidenavWidth": { "alias": "sidenavWidth"; "required": false; }; "containerAutosize": { "alias": "containerAutosize"; "required": false; }; "navigationRoute": { "alias": "navigationRoute"; "required": false; }; }, {}, never, ["[td-menu-button]", "[td-sidenav-toolbar-content]", "[td-sidenav-content]", "[td-toolbar-content]", "*", "td-layout-footer-inner", "td-layout-footer"], false, never>; }