widgets/implementations/kpi/kpi-widget-config/kpi-widget-config.component.ts
OnInit
OnBeforeSave
selector | c8y-kpi-widget-config |
standalone | true |
imports |
CoreModule
DatapointSelectorModule
IconSelectorModule
PopoverModule
|
templateUrl | ./kpi-widget-config.component.html |
viewProviders |
|
Properties |
Methods |
|
Inputs |
constructor(formBuilder: FormBuilder, form: NgForm, widgetConfig: WidgetConfigComponent)
|
||||||||||||
Parameters :
|
config |
Type : KpiWidgetConfig
|
Async ngOnInit |
ngOnInit()
|
Returns :
any
|
onBeforeSave | ||||||
onBeforeSave(config?: KpiWidgetConfig)
|
||||||
Parameters :
Returns :
boolean | Promise | Observable
|
availableIcons |
Type : string[]
|
Default value : []
|
datapointSelectionConfig |
Type : Partial<DatapointSelectorModalOptions>
|
Default value : {}
|
defaultFormOptions |
Type : Partial<DatapointAttributesFormConfig>
|
Default value : {
showRedRange: true,
showYellowRange: true
}
|
formGroup |
Type : ReturnType<>
|