CustomItem Class

A custom item that allows you to implement and embed any additional items into the Web Dashboard.

Declaration

export class CustomItem extends DataDashboardItem

Remarks

In addition to numerous built-in dashboard items, you can implement and embed your own items into the Web Dashboard - custom items.

The image below demonstrates the FunnelD3 custom item that supports data binding, master filtering, and coloring:

CustomItem_Funnel_Main

See Custom Item for more information.

constructor(_meta)

Initializes a new instance of the CustomItem class with specified settings.

Declaration

constructor(_meta: ICustomItemMetaData, modelJson?: any, serializer?: DevExpress.Analytics.Utils.ModelSerializer)

Parameters

Name Type Description
_meta ICustomItemMetaData
modelJson 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

coloringDimensions Property

Declaration

coloringDimensions: ko.ObservableArray<DataItemLink>

Property Value

Type Description
ko.ObservableArray

coloringMeasures Property

Declaration

coloringMeasures: ko.ObservableArray<DataItemLink>

Property Value

Type Description
ko.ObservableArray

coloringOptions Property

Declaration

coloringOptions: DashboardItemColoringOptions

Property Value

Type Description
DashboardItemColoringOptions

colorScheme Property

Declaration

colorScheme: ko.ObservableArray<ColorSchemeEntry>

Property Value

Type Description
ko.ObservableArray

customBindings Property

Declaration

readonly customBindings: Array<ICustomItemBinding>

Property Value

Type Description
js-Array`1

customInteractivity Property

Declaration

readonly customInteractivity: any

Property Value

Type Description
any

customItemType Property

Declaration

customItemType: ko.Observable<string>

Property Value

Type Description
ko.Observable

customMetadata Property

Declaration

customMetadata: {}

Property Value

Type Description
__type

customProperties Property

Declaration

readonly customProperties: Array<ICustomItemProperty>

Property Value

Type Description
js-Array`1

getInfo Property

Declaration

getInfo: () => DevExpress.Analytics.Utils.ISerializationInfoArray

Property Value

Type Description
()=>js-DevExpress.Analytics.Utils.ISerializationInfoArray

interactivityOptions Property

Declaration

interactivityOptions: any

Property Value

Type Description
any

interactivityTargets Property

Declaration

interactivityTargets: ko.ObservableArray<DataItemLink>

Property Value

Type Description
ko.ObservableArray

ItemType Property

Declaration

static ItemType: string

Property Value

Type Description
string

sliceTables Property

Declaration

sliceTables: ko.ObservableArray<SliceTable>

Property Value

Type Description
ko.ObservableArray

Methods

getBindingValue(propertyName) Method

Declaration

getBindingValue(propertyName: string, index?: number): Array<ICustomItemBindingValue>

Parameters

Name Type Description
propertyName string
index number

Returns

Type Description
js-Array`1

getPropertyInfo(p) Method

Declaration

static getPropertyInfo(p: ICustomItemProperty): DevExpress.Analytics.Utils.ISerializationInfo

Parameters

Name Type Description
p ICustomItemProperty

Returns

Type Description
ISerializationInfo

isDrillDownAllowed Method

Declaration

isDrillDownAllowed(): boolean

Returns

Type Description
boolean

isFilterAllowed Method

Declaration

isFilterAllowed(): boolean

Returns

Type Description
boolean

iterateData(action) Method

Declaration

iterateData(action: (item: ICustomDataRow) => any, sliceTableName?: string): void

Parameters

Name Type Description
action (item:js-DevExpress.Dashboard.Model.ICustomDataRow)=>any
sliceTableName string