Skip to main content

Calculation Class

Declaration

export class Calculation extends SerializableModel

Inherited Members

Inheritance

constructor

Initializes a new instance of the Calculation class.

Declaration

constructor(modelJson?: {}, serializer?: DevExpress.Analytics.Utils.ModelSerializer)

Parameters

Name Type Description
modelJson
serializer ModelSerializer

An object used for dashboard deserialization. Do not pass this parameter directly.

Properties

calculation Property

Declaration

calculation: ko.Observable<DevExpress.Dashboard.Model.MeasureCalculation>

Property Value

Type
Observable<MeasureCalculation>

calculationType Property

Declaration

calculationType: ko.Observable<string>

Property Value

Type
Observable<string>

Methods

getInfo Method

For internal use.

Declaration

getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray

Returns

Type Description
ISerializationInfoArray

An array of objects that provide serialization info.

isEmpty Method

Declaration

isEmpty(): boolean

Returns

Type
boolean