UNPKG

ng-zorro-antd

Version:

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

37 lines (36 loc) 1.24 kB
/** * @license * Copyright Alibaba.com All Rights Reserved. * * 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 { TemplateRef, Type } from '@angular/core'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; import { NzDrawerRef } from './drawer-ref'; export declare type NzDrawerPlacement = 'left' | 'right' | 'top' | 'bottom'; export interface NzDrawerOptionsOfComponent<T = NzSafeAny, D = NzSafeAny> { nzClosable?: boolean; nzMaskClosable?: boolean; nzMask?: boolean; nzKeyboard?: boolean; nzNoAnimation?: boolean; nzTitle?: string | TemplateRef<{}>; nzContent?: TemplateRef<{ $implicit: D; drawerRef: NzDrawerRef; }> | Type<T>; nzContentParams?: D; nzMaskStyle?: object; nzBodyStyle?: object; nzWrapClassName?: string; 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>; }