UNPKG

ng-zorro-antd

Version:

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

34 lines (33 loc) 1.42 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 { AfterViewInit, ElementRef, EventEmitter, ExistingProvider, OnDestroy } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { Mention } from './nz-mention.component'; import { NzMentionService } from './nz-mention.service'; export declare const NZ_MENTION_TRIGGER_ACCESSOR: ExistingProvider; export declare class NzMentionTriggerDirective implements ControlValueAccessor, OnDestroy, AfterViewInit { el: ElementRef; private nzMentionService; onChange: (value: string) => void; onTouched: () => void; readonly onFocusin: EventEmitter<void>; readonly onBlur: EventEmitter<void>; readonly onInput: EventEmitter<KeyboardEvent>; readonly onKeydown: EventEmitter<KeyboardEvent>; readonly onClick: EventEmitter<MouseEvent>; value: string; constructor(el: ElementRef, nzMentionService: NzMentionService); completeEvents(): void; focus(caretPos?: number): void; insertMention(mention: Mention): void; writeValue(value: string): void; registerOnChange(fn: (value: string) => void): void; registerOnTouched(fn: () => void): void; ngAfterViewInit(): void; ngOnDestroy(): void; }