branding/plain-branding-editor/lazy/advanced-edit-branding.component.ts
host | { |
selector | c8y-advanced-edit-branding |
standalone | true |
imports |
EditorComponent
AsyncPipe
FormsModule
MonacoEditorMarkerValidatorDirective
CoreModule
|
templateUrl | ./advanced-edit-branding.component.html |
Properties |
Methods |
constructor(activatedRoute: ActivatedRoute)
|
||||||
Parameters :
|
onValueChange | ||||||
onValueChange(value: string)
|
||||||
Parameters :
Returns :
void
|
registerOnChange | ||||||
registerOnChange(fn: (value: string) => void)
|
||||||
Parameters :
Returns :
void
|
registerOnTouched | ||||||
registerOnTouched(fn: () => void)
|
||||||
Parameters :
Returns :
void
|
writeValue | ||||||
writeValue(obj: string)
|
||||||
Parameters :
Returns :
void
|
editorOptions |
Default value : {}
|
infoText |
Type : string
|
Default value : ''
|
optionsJsonString |
Default value : new BehaviorSubject<string>('')
|
valueString |
Default value : new BehaviorSubject<string>('')
|
<div
class="card-block separator-bottom m-b-16"
*ngIf="infoText"
>
<p class="icon-flex">
<i
class="text-info m-r-4 icon-16"
c8yIcon="info-circle"
></i>
<span>
{{ infoText | translate }}
</span>
</p>
</div>
<c8y-editor
class="flex-grow"
[editorOptions]="editorOptions"
[ngModel]="valueString | async"
(ngModelChange)="onValueChange($event)"
monacoEditorMarkerValidator
></c8y-editor>