File

protocol-lwm2m/components/bootstrap-parameters/lwm2m-bootstrap-parameters.component.ts

Implements

OnInit OnDestroy

Metadata

Index

Properties
Methods

Constructor

constructor(alertService: AlertService, permissions: Permissions, builder: FormlyFormBuilder, lwm2mBootstrapParametersSvc: Lwm2mBootstrapParametersService, route: ActivatedRoute)
Parameters :
Name Type Optional
alertService AlertService No
permissions Permissions No
builder FormlyFormBuilder No
lwm2mBootstrapParametersSvc Lwm2mBootstrapParametersService No
route ActivatedRoute No

Methods

disablePSKField
disablePSKField(formState: literal type, field: FormlyFieldConfig)
Parameters :
Name Type Optional
formState literal type No
field FormlyFieldConfig No
Returns : boolean
Async getBootstrapParameters
getBootstrapParameters()
ngOnDestroy
ngOnDestroy()
Returns : void
Async ngOnInit
ngOnInit()
Returns : any
Async save
save()
Returns : any

Properties

fields
Type : FormlyFieldConfig[]
form
Type : FormGroup
Default value : new FormGroup({})
model
Type : object
Default value : {}
options
Type : FormlyFormOptions
Default value : { formState: { disabled: false, mainModel: this.model } }
<form (ngSubmit)="save()">
  <div class="card content-fullpage fit-h">
    <div class="card-header separator grid__col--fullspan">
      <h1 class="card-title">{{ 'LWM2M bootstrap parameters' | translate }}</h1>
    </div>
    <div class="inner-scroll">
      <formly-form
        [form]="form"
        [fields]="fields"
        [model]="model"
        [options]="options"
      ></formly-form>
    </div>
    <div
      [hidden]="options.formState.disabled"
      class="card-footer separator grid__col--fullspan sticky-bottom"
    >
      <button
        title="{{ 'Save' | translate }}"
        type="submit"
        class="btn btn-primary"
        [disabled]="form.invalid || !form.dirty"
      >
        {{ 'Save' | translate }}
      </button>
    </div>
  </div>
</form>

results matching ""

    No results matching ""