@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
35 lines • 1.81 kB
TypeScript
import { OnDestroy, SimpleChanges } from '@angular/core';
import { editor } from 'monaco-editor';
import { HtmlWidgetConfigService } from '../html-widget-config.service';
import { HtmlWidget } from '../html-widget.model';
import * as i0 from "@angular/core";
export declare class WidgetCodeEditorComponent implements OnDestroy {
mode: 'code' | 'css';
config: HtmlWidget;
configService: HtmlWidgetConfigService;
editor: editor.IStandaloneCodeEditor;
isAutoSaveEnabled: boolean;
language: 'html' | 'css' | 'javascript';
value: string;
isLoading: boolean;
readonly TAB_WEBCOMPONENT_LABEL: "Web Component`Tab label of HTML Widget`";
readonly TAB_HTML_LABEL: "HTML`Tab label of HTML Widget`";
readonly TAB_CSS_LABEL: "CSS`Tab label of HTML Widget`";
readonly BUTTON_DISABLE_AUTOSAVE_LABEL: "Disable auto save`An action you can do on the html widget editor`";
readonly BUTTON_ENABLE_AUTOSAVE_LABEL: "Enable auto save`An action you can do on the html widget editor`";
readonly TAB_OUTLET_NAME = "html-widget-tab-outlet";
private destroy$;
ngOnDestroy(): void;
ngOnChanges(changes: SimpleChanges): void;
loadCode(): void;
switchMode(mode: 'code' | 'css'): void;
editorLoaded(editor: editor.IStandaloneCodeEditor): void;
formatCode(): void;
redo(): void;
undo(): void;
changeCode($event: string): void;
saveCode(codeStr?: string): void;
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetCodeEditorComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetCodeEditorComponent, "c8y-widget-code-editor", never, { "mode": { "alias": "mode"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
}
//# sourceMappingURL=widget-code-editor.component.d.ts.map