File

protocol-lwm2m/components/configuration/lwm2m-configuration.component.ts

Metadata

Index

Properties
Methods

Constructor

constructor(lwm2mConfigService: Lwm2mConfigurationService<IIdentified>, route: ActivatedRoute)
Parameters :
Name Type Optional
lwm2mConfigService Lwm2mConfigurationService<IIdentified> No
route ActivatedRoute No

Methods

onActivate
onActivate(event)
Parameters :
Name Optional
event No
Returns : void

Properties

componentInstance
Type : Lwm2mFormWrapperBase<Settings>
tabs
Type : Tab[]
<div class="card content-fullpage d-col">
  <div class="card-header p-0">
    <c8y-ui-tabs
      class="card-has-tabs card-tabs"
      [tabs]="tabs"
      [orientation]="'horizontal'"
    ></c8y-ui-tabs>
  </div>
  <div class="inner-scroll bg-level-0 flex-grow">
    <form class="card-block--formly fit-h">
      <router-outlet (activate)="onActivate($event)"></router-outlet>
    </form>
  </div>
  <div
    class="card-footer separator sticky-bottom"
    *ngIf="componentInstance?.fields?.length > 0"
  >
    <button
      class="btn btn-default"
      title="{{ 'Cancel' | translate }}"
      type="button"
      (click)="componentInstance.cancel()"
      [disabled]="!componentInstance.form.dirty"
    >
      {{ 'Cancel' | translate }}
    </button>
    <button
      class="btn btn-primary"
      title="{{ 'Save' | translate }}"
      type="button"
      [disabled]="componentInstance.form.invalid || !componentInstance.form.dirty"
      (click)="componentInstance.save()"
    >
      {{ 'Save' | translate }}
    </button>
  </div>
</div>

results matching ""

    No results matching ""