File

editor/editor.component.ts

Implements

AfterViewInit OnDestroy ControlValueAccessor

Metadata

Index

Properties
Methods
Inputs
Outputs

Constructor

constructor(zone: NgZone, theme: ThemeSwitcherService)
Parameters :
Name Type Optional
zone NgZone No
theme ThemeSwitcherService No

Inputs

editorOptions
Type : Monaco.editor.IStandaloneEditorConstructionOptions
Default value : {}

Outputs

editorInit
Type : EventEmitter

Methods

Async ngAfterViewInit
ngAfterViewInit()
Returns : Promise<void>
ngOnDestroy
ngOnDestroy()
Returns : void
register
register()
Returns : void
registerOnChange
registerOnChange(fn: (value: string) => void)
Parameters :
Name Type Optional
fn function No
Returns : void
registerOnTouched
registerOnTouched(fn: () => void)
Parameters :
Name Type Optional
fn function No
Returns : void
setDisabledState
setDisabledState(isDisabled: boolean)
Parameters :
Name Type Optional
isDisabled boolean No
Returns : void
writeValue
writeValue(obj: string | object)
Parameters :
Name Type Optional
obj string | object No
Returns : void

Properties

_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>

results matching ""

    No results matching ""