ng12-ace-editor
Version:
A fork from ng2-ace-editor updated to work with Angular 12
40 lines (39 loc) • 1.58 kB
TypeScript
import { EventEmitter, ElementRef, OnInit, OnDestroy, NgZone } from "@angular/core";
import "brace";
import "brace/theme/monokai";
import * as i0 from "@angular/core";
export declare class AceEditorDirective implements OnInit, OnDestroy {
private zone;
textChanged: EventEmitter<any>;
textChange: EventEmitter<any>;
_options: any;
_readOnly: boolean;
_theme: string;
_mode: any;
_autoUpdateContent: boolean;
_durationBeforeCallback: number;
_text: string;
editor: any;
oldText: any;
timeoutSaving: any;
constructor(elementRef: ElementRef, zone: NgZone);
ngOnInit(): void;
ngOnDestroy(): void;
init(): void;
initEvents(): void;
updateText(): void;
set options(options: any);
set readOnly(readOnly: any);
set theme(theme: any);
set mode(mode: any);
setMode(mode: any): void;
get text(): string;
set text(text: string);
setText(text: any): void;
set autoUpdateContent(status: any);
set durationBeforeCallback(num: number);
setDurationBeforeCallback(num: number): void;
get aceEditor(): any;
static ɵfac: i0.ɵɵFactoryDeclaration<AceEditorDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<AceEditorDirective, "[ace-editor]", never, { "options": "options"; "readOnly": "readOnly"; "theme": "theme"; "mode": "mode"; "text": "text"; "autoUpdateContent": "autoUpdateContent"; "durationBeforeCallback": "durationBeforeCallback"; }, { "textChanged": "textChanged"; "textChange": "textChange"; }, never>;
}