UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

43 lines (42 loc) 1.56 kB
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { Direction } from '@angular/cdk/bidi'; import { TemplateRef, Type } from '@angular/core'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; import { NzDrawerRef } from './drawer-ref'; export declare const DRAWER_DEFAULT_SIZE = 378; export declare const DRAWER_LARGE_SIZE = 736; export declare type NzDrawerPlacement = 'left' | 'right' | 'top' | 'bottom'; export declare type NzDrawerSize = 'default' | 'large'; export interface NzDrawerOptionsOfComponent<T = NzSafeAny, D = NzSafeAny> { nzClosable?: boolean; nzMaskClosable?: boolean; nzCloseOnNavigation?: boolean; nzDirection?: Direction; nzMask?: boolean; nzKeyboard?: boolean; nzNoAnimation?: boolean; nzTitle?: string | TemplateRef<{}>; nzExtra?: string | TemplateRef<{}>; nzFooter?: string | TemplateRef<{}>; nzContent?: TemplateRef<{ $implicit: D; drawerRef: NzDrawerRef; }> | Type<T>; nzContentParams?: Partial<T & D>; nzMaskStyle?: object; nzBodyStyle?: object; nzWrapClassName?: string; nzSize?: NzDrawerSize; nzWidth?: number | string; nzHeight?: number | string; nzPlacement?: NzDrawerPlacement; nzZIndex?: number; nzOffsetX?: number; nzOffsetY?: number; } export interface NzDrawerOptions<T = NzSafeAny, D = NzSafeAny> extends NzDrawerOptionsOfComponent<T, D> { nzOnCancel?(): Promise<NzSafeAny>; }