protocol-lwm2m/components/bootstrap-parameters/lwm2m-bootstrap-parameters.component.ts
OnInit
OnDestroy
selector | c8y-lwm2m-bootstrap-parameters |
standalone | true |
imports |
CommonModule
CoreModule
|
templateUrl | ./lwm2m-bootstrap-parameters.component.html |
Properties |
Methods |
|
constructor(alertService: AlertService, permissions: Permissions, builder: FormlyFormBuilder, lwm2mBootstrapParametersSvc: Lwm2mBootstrapParametersService, route: ActivatedRoute)
|
||||||||||||||||||
Parameters :
|
disablePSKField | |||||||||
disablePSKField(formState: literal type, field: FormlyFieldConfig)
|
|||||||||
Parameters :
Returns :
boolean
|
Async getBootstrapParameters |
getBootstrapParameters()
|
Returns :
Promise<Lwm2mBootstrapParameters>
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
Async ngOnInit |
ngOnInit()
|
Returns :
any
|
Async save |
save()
|
Returns :
any
|
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>