datapoint-selector/datapoint-attributes-form/datapoint-attributes-form.component.ts
ControlValueAccessor
Validator
OnInit
providers |
{
provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DatapointAttributesFormComponent), multi: true
}
{
provide: NG_VALIDATORS, useExisting: forwardRef(() => DatapointAttributesFormComponent), multi: true
}
|
selector | c8y-datapoint-attributes-form |
templateUrl | ./datapoint-attributes-form.component.html |
Properties |
Methods |
Inputs |
constructor(formValidations: DatapointAttributesFormValidationService)
|
||||||
Parameters :
|
selectableAxisTypes |
Type : AxisTypes[]
|
Default value : []
|
selectableChartLineTypes |
Type : ChartLineTypes[]
|
Default value : []
|
selectableChartRenderTypes |
Type : ChartRenderTypes[]
|
Default value : []
|
showChart |
Type : boolean
|
Default value : true
|
showFormIfTemplateWasSelected |
Type : boolean
|
Default value : false
|
showRange |
Type : boolean
|
Default value : true
|
showRedRange |
Type : boolean
|
Default value : true
|
showTarget |
Type : boolean
|
Default value : true
|
showYellowRange |
Type : boolean
|
Default value : true
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
registerOnChange | ||||||
registerOnChange(fn: any)
|
||||||
Parameters :
Returns :
void
|
registerOnTouched | ||||||
registerOnTouched(fn: any)
|
||||||
Parameters :
Returns :
void
|
setDisabledState | ||||||
setDisabledState(isDisabled: boolean)
|
||||||
Parameters :
Returns :
void
|
validate | ||||||
validate(_control: AbstractControl)
|
||||||
Parameters :
Returns :
ValidationErrors
|
writeValue | ||||||
writeValue(obj: any)
|
||||||
Parameters :
Returns :
void
|
AXIS_TYPES |
Type : Array<>
|
Default value : Array.from(AXIS_TYPES)
|
chart |
Type : FormGroup
|
CHART_LINE_TYPES |
Type : Array<>
|
Default value : Array.from(CHART_LINE_TYPES)
|
CHART_RENDER_TYPES |
Type : Array<>
|
Default value : Array.from(CHART_RENDER_TYPES)
|
customValidationErrorMessages |
Type : literal type
|
Default value : {}
|
display |
Type : FormGroup
|
formGroup |
Type : FormGroup
|
range |
Type : FormGroup
|
rawValue |
Type : any
|
Default value : {}
|
redRange |
Type : FormGroup
|
shouldForceInitialValidation |
Default value : true
|
showChartForm |
Type : boolean
|
showOnlyDisplayForm |
Type : boolean
|
yellowRange |
Type : FormGroup
|