arlas-web-components > "components/metric/metric.component" > MetricComponent

Class: MetricComponent

Hierarchy

MetricComponent

Implements

  • OnInit
  • OnChanges

Index

Constructors

Properties

Methods


Constructors

constructor

new MetricComponent(): MetricComponent

Defined in components/metric/metric.component.ts:45

Returns: MetricComponent


Properties

afterValue

● afterValue: string = ""

Defined in components/metric/metric.component.ts:41


beforeValue

● beforeValue: string = ""

Defined in components/metric/metric.component.ts:39


customizedCssClass

● customizedCssClass: string

Defined in components/metric/metric.component.ts:42


displayedValue

● displayedValue: string = "0"

Defined in components/metric/metric.component.ts:45


shortValue

● shortValue: boolean = false

Defined in components/metric/metric.component.ts:44


value

● value: number

Defined in components/metric/metric.component.ts:40


valuePrecision

● valuePrecision: number = 2

Defined in components/metric/metric.component.ts:43


Methods

ngOnChanges

ngOnChanges(changes: SimpleChanges): void

Defined in components/metric/metric.component.ts:59

Parameters:

Name Type
changes SimpleChanges

Returns: void


ngOnInit

ngOnInit(): void

Defined in components/metric/metric.component.ts:49

Returns: void


<Static> getMetricJsonSchema

getMetricJsonSchema(): Object

Defined in components/metric/metric.component.ts:77

Returns: Object Json schema of the donut component for configuration


<Static> round

round(value: any, precision: any): number

Defined in components/metric/metric.component.ts:83

Parameters:

Name Type
value any
precision any

Returns: number