UNPKG

ngx-ace-icy

Version:
52 lines (51 loc) 1.6 kB
import { EventEmitter, ElementRef, OnInit, OnDestroy, NgZone } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; export declare class NgxAceComponent implements ControlValueAccessor, OnInit, OnDestroy { private elementRef; private zone; textChanged: EventEmitter<any>; textChange: EventEmitter<any>; placeholder: string; style: any; _options: any; _readOnly: boolean; _theme: string; _mode: any; _autoUpdateContent: boolean; _editor: any; _durationBeforeCallback: number; _text: string; oldText: any; timeoutSaving: any; constructor(elementRef: ElementRef, zone: NgZone); ngOnInit(): void; ngOnDestroy(): void; init(): void; initEvents(): void; updateText(): void; set options(options: any); setOptions(options: any): void; set readOnly(readOnly: any); setReadOnly(readOnly: any): void; set theme(theme: any); setTheme(theme: any): void; set mode(mode: any); setMode(mode: any): void; get value(): string; set value(value: string); writeValue(value: any): void; private onChange; registerOnChange(fn: any): void; private onTouched; registerOnTouched(fn: any): void; get text(): string; set text(text: string); setText(text: any): void; set autoUpdateContent(status: any); setAutoUpdateContent(status: any): void; set durationBeforeCallback(num: number); setDurationBeforeCallback(num: number): void; /** 为空时增加placeholder提示信息 */ private emptyMessage; getEditor(): any; }