Skip to main content
A newer version of this page is available. .

DataItem Class

Serves as the base class for data items - measures and dimensions.

Declaration

export abstract class DataItem extends TypedSerializableModel implements IDashboardComponent

Remarks

DataItem serves as a base class and exposes the following descendants:

Inherited Members

Inheritance

See Also

constructor

Initializes a new instance of the DataItem class.

Declaration

constructor(
    dataItemJSON?: any,
    serializer?: DxDesigner.Analytics.Utils.IModelSerializer
)

Parameters

Name Type
dataItemJSON any
serializer DxDesigner.Analytics.Utils.IModelSerializer

Properties

dataMember Property

Declaration

dataMember: KnockoutObservable<string>

Property Value

Type
KnockoutObservable<string>

dateTimeFormat Property

Declaration

dateTimeFormat: DataItemDateTimeFormat

Property Value

Type
DataItemDateTimeFormat

name Property

Declaration

name: KnockoutObservable<string>

Property Value

Type
KnockoutObservable<string>

numericFormat Property

Declaration

numericFormat: DataItemNumericFormat

Property Value

Type
DataItemNumericFormat

showGrandTotals Property

Declaration

showGrandTotals: KnockoutObservable<boolean>

Property Value

Type
KnockoutObservable<boolean>

showTotals Property

Declaration

showTotals: KnockoutObservable<boolean>

Property Value

Type
KnockoutObservable<boolean>

showValues Property

Declaration

showValues: KnockoutObservable<boolean>

Property Value

Type
KnockoutObservable<boolean>

typesMap Property

Declaration

static typesMap: {
    Integer: string;
    Float: string;
    Double: string;
    Decimal: string;
    DateTime: string;
    Text: string;
    String: string;
    Bool: string;
    Boolean: string;
}

Property Value

Name Type
Bool string
Boolean string
DateTime string
Decimal string
Double string
Float string
Integer string
String string
Text string

uniqueName Property

Declaration

uniqueName: KnockoutObservable<string>

Property Value

Type
KnockoutObservable<string>

Methods

getInfo Method

For internal use.

Declaration

getInfo(): DxDesigner.Analytics.Utils.ISerializationsInfo

Returns

Type Description
DxDesigner.Analytics.Utils.ISerializationsInfo

 

getUniqueNamePrefix Method

Declaration

getUniqueNamePrefix(): string

Returns

Type
string

grabFrom(dataItem) Method

Declaration

grabFrom(
    dataItem: DataItem
): void

Parameters

Name Type
dataItem DataItem

isDefinitionEquals(dataItem) Method

Declaration

isDefinitionEquals(
    dataItem: DataItem
): boolean

Parameters

Name Type
dataItem DataItem

Returns

Type
boolean