ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
52 lines (51 loc) • 2.22 kB
TypeScript
/**
* 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 { ElementRef, EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation';
import { NzSafeAny } from 'ng-zorro-antd/core/types';
import { NzSelectSearchComponent } from './select-search.component';
import { NzSelectItemInterface, NzSelectModeType, NzSelectTopControlItemType } from './select.types';
export declare class NzSelectTopControlComponent implements OnChanges {
private elementRef;
noAnimation?: NzNoAnimationDirective | undefined;
nzId: string | null;
showSearch: boolean;
placeHolder: string | TemplateRef<NzSafeAny> | null;
open: boolean;
maxTagCount: number;
autofocus: boolean;
disabled: boolean;
mode: NzSelectModeType;
customTemplate: TemplateRef<{
$implicit: NzSelectItemInterface;
}> | null;
maxTagPlaceholder: TemplateRef<{
$implicit: NzSafeAny[];
}> | null;
removeIcon: TemplateRef<NzSafeAny> | null;
listOfTopItem: NzSelectItemInterface[];
tokenSeparators: string[];
readonly tokenize: EventEmitter<string[]>;
readonly inputValueChange: EventEmitter<string>;
readonly deleteItem: EventEmitter<NzSelectItemInterface>;
nzSelectSearchComponent: NzSelectSearchComponent;
listOfSlicedItem: NzSelectTopControlItemType[];
isShowPlaceholder: boolean;
isShowSingleLabel: boolean;
isComposing: boolean;
inputValue: string | null;
onHostKeydown(e: KeyboardEvent): void;
updateTemplateVariable(): void;
isComposingChange(isComposing: boolean): void;
onInputValueChange(value: string): void;
tokenSeparate(inputValue: string, tokenSeparators: string[]): void;
clearInputValue(): void;
focus(): void;
blur(): void;
trackValue(_index: number, option: NzSelectTopControlItemType): NzSafeAny;
onDeleteItem(item: NzSelectItemInterface): void;
constructor(elementRef: ElementRef, noAnimation?: NzNoAnimationDirective | undefined);
ngOnChanges(changes: SimpleChanges): void;
}