Back to Devexpress

CustomItem Class

dashboard-js-devexpress-dot-dashboard-dot-model-66a0c978.md

latest10.0 KB
Original Source

CustomItem Class

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

Declaration

ts
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:

You can find and download the full example on GitHub:

View Example: ASP.NET CoreView Example: AngularView Example: React

Refer to the following topic for more information on custom items: Custom Item.

Inherited Members

componentName

customProperties

dataItems

dataMember

dataSource

disposed

filterString

formatRules

hiddenDimensions

hiddenMeasures

isDisposed

isMasterFilterCrossDataSource

itemType

name

parentContainer

showCaption

visibleDataFilterString

dispose

getUniqueNamePrefix

Inheritance

SerializableModel TypedSerializableModel DashboardItem DataDashboardItem CustomItem

constructor(_meta)

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

Declaration

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

Parameters

NameTypeDescription
_metaICustomItemMetaData
modelJsonany

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

ts
coloringDimensions: ko.ObservableArray<DevExpress.Dashboard.Model.DataItemLink>

Property Value

Type
ObservableArray<DataItemLink>

coloringMeasures Property

Declaration

ts
coloringMeasures: ko.ObservableArray<DevExpress.Dashboard.Model.DataItemLink>

Property Value

Type
ObservableArray<DataItemLink>

coloringOptions Property

Declaration

ts
coloringOptions: DevExpress.Dashboard.Model.DashboardItemColoringOptions

Property Value

Type
DashboardItemColoringOptions

colorScheme Property

Declaration

ts
colorScheme: ko.ObservableArray<DevExpress.Dashboard.Model.ColorSchemeEntry>

Property Value

Type
ObservableArray<ColorSchemeEntry>

customBindings Property

Declaration

ts
get customBindings(): Array<DevExpress.Dashboard.Model.ICustomItemBinding>

Property Value

Type
ICustomItemBinding[]

customInteractivity Property

Declaration

ts
get customInteractivity(): any

Property Value

Type
any

customItemType Property

Declaration

ts
customItemType: ko.Observable<string>

Property Value

Type
Observable<string>

customMetadata Property

Declaration

ts
customMetadata: {}

interactivityOptions Property

Declaration

ts
interactivityOptions: any

Property Value

Type
any

interactivityTargets Property

Declaration

ts
interactivityTargets: ko.ObservableArray<DevExpress.Dashboard.Model.DataItemLink>

Property Value

Type
ObservableArray<DataItemLink>

ItemType Property

Declaration

ts
static ItemType: string

Property Value

Type
string

legacyCustomProperties Property

Declaration

ts
get legacyCustomProperties(): Array<DevExpress.Dashboard.Model.ICustomItemProperty>

Property Value

Type
ICustomItemProperty[]

sliceTables Property

Declaration

ts
sliceTables: ko.ObservableArray<DevExpress.Dashboard.Model.SliceTable>

Property Value

Type
ObservableArray<SliceTable>

Methods

getBindingValue(propertyName) Method

Declaration

ts
getBindingValue(
    propertyName: string,
    index?: number
): Array<DevExpress.Dashboard.Model.ICustomItemBindingValue>

Parameters

NameType
propertyNamestring
indexnumber

Returns

Type
ICustomItemBindingValue[]

getInfo Method

Declaration

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

Returns

Type
ISerializationInfoArray

getPropertyInfo(p) Method

Declaration

ts
static getPropertyInfo(
    p: DevExpress.Dashboard.Model.ICustomItemProperty
): DevExpress.Dashboard.Metadata.IDashboardSerializationInfo

Parameters

NameType
pICustomItemProperty

Returns

Type
IDashboardSerializationInfo

isDrillDownAllowed Method

Declaration

ts
isDrillDownAllowed(): boolean

Returns

Type
boolean

isFilterAllowed Method

Declaration

ts
isFilterAllowed(): boolean

Returns

Type
boolean

iterateData(action) Method

Declaration

ts
iterateData(
    action: (item: DevExpress.Dashboard.Model.ICustomDataRow) => any,
    sliceTableName?: string
): void

Parameters

NameType
action(item: ICustomDataRow) => any
sliceTableNamestring