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.

67 lines (66 loc) 2.56 kB
import { MatSidenav, MatDrawerToggleResult } from '@angular/material/sidenav'; import { ILayoutTogglable } from './layout-toggle.class'; import * as i0 from "@angular/core"; export declare class TdLayoutComponent implements ILayoutTogglable { sidenav: MatSidenav; /** * mode?: 'side', 'push' or 'over' * * The mode or styling of the sidenav. * Defaults to "over". * 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 "false". * * 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 "320px". * * 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; /** * Checks if `ESC` should close the sidenav * Should only close it for `push` and `over` modes */ get disableClose(): boolean; /** * 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<TdLayoutComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutComponent, "td-layout", never, { "mode": { "alias": "mode"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "sidenavWidth": { "alias": "sidenavWidth"; "required": false; }; "containerAutosize": { "alias": "containerAutosize"; "required": false; }; }, {}, never, ["td-navigation-drawer", "[td-sidenav-content]", "*"], false, never>; }