UNPKG

ng-zorro-antd

Version:

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

31 lines (30 loc) 1.22 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 { TemplateRef } from '@angular/core'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; export declare type NzSelectModeType = 'default' | 'multiple' | 'tags'; export interface NzSelectItemInterface { template?: TemplateRef<NzSafeAny> | null; nzLabel: string | number | null; nzValue: NzSafeAny | null; nzDisabled?: boolean; nzHide?: boolean; nzCustomContent?: boolean; groupLabel?: string | number | TemplateRef<NzSafeAny> | null; type?: string; key?: NzSafeAny; } export interface NzSelectOptionInterface { label: string | number | null | TemplateRef<NzSafeAny>; value: NzSafeAny | null; disabled?: boolean; hide?: boolean; groupLabel?: string | number | TemplateRef<NzSafeAny> | null; } export declare type NzSelectTopControlItemType = Partial<NzSelectItemInterface> & { contentTemplateOutlet: TemplateRef<NzSafeAny> | null; contentTemplateOutletContext: NzSafeAny; }; export declare type NzFilterOptionType = (input: string, option: NzSelectItemInterface) => boolean;