Skip to main content

ContextItem Class

#Declaration

TypeScript
export class ContextItem extends SerializableModel

#Inherited Members

#Inheritance

#constructor

Initializes a new instance of the ContextItem class.

#Declaration

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

#Parameters

Name Type Description
json any

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

serializer ModelSerializer

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

#Properties

#id Property

#Declaration

TypeScript
id: ko.Observable<string>

#Property Value

Type
Observable<string>

#source Property

#Declaration

TypeScript
source: ko.Observable<DevExpress.Dashboard.Model.DataSource>

#Property Value

Type
Observable<DataSource>

#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.