ace-editor-ng9
Version:
A fork from ng2-ace-editor updated to work with Angular 9
49 lines (48 loc) • 1.5 kB
TypeScript
import { EventEmitter, ElementRef, OnInit, OnDestroy, NgZone } from "@angular/core";
import { ControlValueAccessor } from "@angular/forms";
import "brace";
import "brace/theme/monokai";
export declare class AceEditorComponent implements ControlValueAccessor, OnInit, OnDestroy {
private zone;
textChanged: EventEmitter<any>;
textChange: EventEmitter<any>;
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;
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;
getEditor(): any;
}