device-protocol-object-mappings/object-mapping.component.ts
OnInit
AfterViewInit
selector | c8y-device-protocol-object-mappings |
standalone | true |
imports |
C8yCommonModule
C8yFormsModule
DynamicFormsModule
FormlyModule
CoreModule
|
templateUrl | ./object-mapping.component.html |
Properties |
Methods |
Inputs |
Outputs |
constructor(injector: Injector)
|
||||||
Parameters :
|
data |
Default value : {}
|
objectMappingTypes |
Type : Type<BaseObjectMapping>[]
|
onUpdate |
Type : EventEmitter
|
ngAfterViewInit |
ngAfterViewInit()
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
onChange | ||||
onChange(_event)
|
||||
Parameters :
Returns :
void
|
fields |
Type : FormlyFieldConfig[]
|
Default value : []
|
form |
Default value : new FormGroup({})
|
options |
Type : FormlyFormOptions
|
Default value : {
formState: {
disabled: false
}
}
|
<div class="form m-b-16 object-mappings">
<div class="legend form-block">{{ 'Functionalities' | translate }}</div>
<formly-form
[model]="model"
[form]="form"
[fields]="fields"
[options]="options"
(modelChange)="onChange($event)"
data-cy="device-protocol-object-mappings--formly-form"
></formly-form>
</div>