UNPKG

2.56 kBTypeScriptView Raw
1import { MatSidenav, MatDrawerToggleResult } from '@angular/material/sidenav';
2import { ILayoutTogglable } from './layout-toggle.class';
3import * as i0 from "@angular/core";
4export declare class TdLayoutComponent implements ILayoutTogglable {
5 sidenav: MatSidenav;
6 /**
7 * mode?: 'side', 'push' or 'over'
8 *
9 * The mode or styling of the sidenav.
10 * Defaults to "over".
11 * See "MatSidenav" documentation for more info.
12 *
13 * https://github.com/angular/material2/tree/main/src/lib/sidenav
14 */
15 mode: 'side' | 'push' | 'over';
16 /**
17 * opened?: boolean
18 *
19 * Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
20 * Defaults to "false".
21 *
22 * See "MatSidenav" documentation for more info.
23 *
24 * https://github.com/angular/material2/tree/main/src/lib/sidenav
25 */
26 opened: boolean;
27 /**
28 * sidenavWidth?: string
29 *
30 * Sets the "width" of the sidenav in either "px" or "%"
31 * Defaults to "320px".
32 *
33 * https://github.com/angular/material2/tree/main/src/lib/sidenav
34 */
35 sidenavWidth: string;
36 /**
37 * containerAutosize?: boolean
38 *
39 * Sets "autosize" of the sidenav-container.
40 * Defaults to "false".
41 *
42 * See documentation for more info and potential performance risks.
43 *
44 * https://github.com/angular/material2/blob/main/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
45 */
46 containerAutosize: boolean;
47 /**
48 * Checks if `ESC` should close the sidenav
49 * Should only close it for `push` and `over` modes
50 */
51 get disableClose(): boolean;
52 /**
53 * Proxy toggle method to access sidenav from outside (from td-layout template).
54 */
55 toggle(): Promise<MatDrawerToggleResult>;
56 /**
57 * Proxy open method to access sidenav from outside (from td-layout template).
58 */
59 open(): Promise<MatDrawerToggleResult>;
60 /**
61 * Proxy close method to access sidenav from outside (from td-layout template).
62 */
63 close(): Promise<MatDrawerToggleResult>;
64 static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutComponent, never>;
65 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>;
66}