The requested page is not available for the requested platform. You are viewing the content for Default platform.
All docs
V18.2
19.1 (preview)
18.2
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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:

See Also

constructor

Initializes a new instance of the DataItem class.

Declaration

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

Optional Parameters

Type Name Default Description
any dataItemJSON null
DxDesigner.Analytics.Utils.IModelSerializer serializer null

Properties

dataMember Property

Declaration

dataMember: KnockoutObservable<string>

Property Value

Type Description
KnockoutObservable<string>

dateTimeFormat Property

Declaration

dateTimeFormat: DataItemDateTimeFormat

Property Value

Type Description
DataItemDateTimeFormat

name Property

Declaration

name: KnockoutObservable<string>

Property Value

Type Description
KnockoutObservable<string>

numericFormat Property

Declaration

numericFormat: DataItemNumericFormat

Property Value

Type Description
DataItemNumericFormat

showGrandTotals Property

Declaration

showGrandTotals: KnockoutObservable<boolean>

Property Value

Type Description
KnockoutObservable<boolean>

showTotals Property

Declaration

showTotals: KnockoutObservable<boolean>

Property Value

Type Description
KnockoutObservable<boolean>

showValues Property

Declaration

showValues: KnockoutObservable<boolean>

Property Value

Type Description
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

Type Description
string
string
string
string
string
string
string
string
string

uniqueName Property

Declaration

uniqueName: KnockoutObservable<string>

Property Value

Type Description
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 Description
string

grabFrom(dataItem) Method

Declaration

grabFrom(dataItem: DataItem): void

Parameters

Name Type Description
dataItem DataItem

isDefinitionEquals(dataItem) Method

Declaration

isDefinitionEquals(dataItem: DataItem): boolean

Parameters

Name Type Description
dataItem DataItem

Returns

Type Description
boolean