editor/editor.component.ts
AfterViewInit
OnDestroy
ControlValueAccessor
providers |
{
provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => EditorComponent), multi: true
}
|
selector | c8y-editor |
standalone | true |
imports |
LoadingComponent
NgIf
|
templateUrl | ./editor.component.html |
Properties |
Methods |
Inputs |
Outputs |
constructor(zone: NgZone, theme: ThemeSwitcherService)
|
|||||||||
Parameters :
|
editorOptions |
Type : Monaco.editor.IStandaloneEditorConstructionOptions
|
Default value : {}
|
editorInit |
Type : EventEmitter
|
Async ngAfterViewInit |
ngAfterViewInit()
|
Returns :
Promise<void>
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
register |
register()
|
Returns :
void
|
registerOnChange | ||||||
registerOnChange(fn: (value: string) => void)
|
||||||
Parameters :
Returns :
void
|
registerOnTouched | ||||||
registerOnTouched(fn: () => void)
|
||||||
Parameters :
Returns :
void
|
setDisabledState | ||||||
setDisabledState(isDisabled: boolean)
|
||||||
Parameters :
Returns :
void
|
writeValue | ||||||
writeValue(obj: string | object)
|
||||||
Parameters :
Returns :
void
|
_editorContainer |
Type : ElementRef
|
Decorators :
@ViewChild('editorContainer', {static: true})
|
editor |
Type : Monaco.editor.IStandaloneCodeEditor
|
monaco |
<c8y-loading *ngIf="!monaco"></c8y-loading>
<div class="editor-container" style="height: 100%" #editorContainer></div>