File

branding/plain-branding-editor/lazy/advanced-edit-branding.component.ts

Implements

ControlValueAccessor

Metadata

Index

Properties
Methods

Constructor

constructor(activatedRoute: ActivatedRoute)
Parameters :
Name Type Optional
activatedRoute ActivatedRoute No

Methods

onValueChange
onValueChange(value: string)
Parameters :
Name Type Optional
value string No
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
writeValue
writeValue(obj: string)
Parameters :
Name Type Optional
obj string No
Returns : void

Properties

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>

results matching ""

    No results matching ""