protocol-lwm2m/components/configuration/typed-forms/single-server-settings.component.ts
OnInit
selector | c8y-lwm2m-form-single-server-settings |
standalone | true |
imports |
CoreModule
Lwm2mUIThemeModule
RouterModule
|
templateUrl | ./form-wrapper-base.component.html |
Properties |
Methods |
|
constructor(service: Lwm2mConfigurationService<ServerSettings>)
|
||||||
Parameters :
|
createForm |
createForm()
|
Returns :
{}
|
delete |
delete()
|
Returns :
void
|
Protected getFullURI |
getFullURI()
|
Returns :
any
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
save |
save()
|
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
Protected alert |
Type : AlertService
|
cancel |
Default value : () => {...}
|
Protected endpoint |
Type : LWM2MEndpoint
|
Default value : LWM2MEndpoint.servers
|
id |
Type : string
|
buttons |
Type : object
|
Default value : {}
|
Protected destroy$ |
Type : Subject<void>
|
Default value : new Subject()
|
fields |
Type : FormlyFieldConfig[]
|
Default value : []
|
form |
Default value : new FormGroup({})
|
model |
Default value : {} as T
|
options |
Type : FormlyFormOptions
|
Default value : {
formState: { disabled: false }
}
|
<formly-form
*ngIf="fields?.length > 0; else empty"
[model]="model"
[form]="form"
[fields]="fields"
[options]="options"
data-cy="lwm2m-device-configuration--formly-form"
></formly-form>
<ng-template #empty>
<c8y-ui-empty-state
[icon]="'c8y-device-protocols'"
title="{{ 'No configuration selected' | translate }}"
subtitle="{{ 'Select a configuration on the left' | translate }}"
></c8y-ui-empty-state>
</ng-template>