Skip to main content

Measure Class

A measure which is a DataItem whose values are summarized before they are used in the dashboard.

#Declaration

TypeScript
export class Measure extends DataItem
See Also

#constructor

Initializes a new instance of the Measure class.

#Declaration

TypeScript
constructor(
    dataItemJSON?: any,
    serializer?: DevExpress.Analytics.Utils.ModelSerializer
)

#Parameters

Name Type Description
dataItemJSON any
serializer ModelSerializer

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

#Properties

#calculation Property

#Declaration

TypeScript
calculation: DevExpress.Dashboard.Model.Calculation

#Property Value

Type
Calculation

#expression Property

#Declaration

TypeScript
expression: ko.Observable<string>

#Property Value

Type
Observable<string>

#filterString Property

#Declaration

TypeScript
filterString: ko.Observable<string>

#Property Value

Type
Observable<string>

#summaryType Property

#Declaration

TypeScript
summaryType: ko.Observable<DevExpress.Dashboard.Model.SummaryType>

#Property Value

Type
Observable<SummaryType>

#windowDefinition Property

#Declaration

TypeScript
windowDefinition: DevExpress.Dashboard.Model.WindowDefinition

#Property Value

Type
WindowDefinition

#Methods

#getInfo Method

For internal use.

#Declaration

TypeScript
getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray

#Returns

Type Description
ISerializationInfoArray

An array of objects that provide serialization info.

#grabFrom(dataItem) Method

#Declaration

TypeScript
grabFrom(
    dataItem: Measure
): void

#Parameters

Name Type
dataItem Measure

#isDefinitionEquals(dataItem) Method

#Declaration

TypeScript
isDefinitionEquals(
    dataItem: DevExpress.Dashboard.Model.DataItem
): boolean

#Parameters

Name Type
dataItem DataItem

#Returns

Type
boolean