CustomItem Class
A custom item that allows you to implement and embed any additional items into the Web Dashboard.
#Declaration
TypeScript
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:
Refer to the following topic for more information on custom items: Custom Item.
#Inherited Members
#Inheritance
#constructor(_meta)
Initializes a new instance of the CustomItem
class with specified settings.
#Declaration
TypeScript
constructor(
_meta: DevExpress.Dashboard.Model.ICustomItemMetaData,
modelJson?: any,
serializer?: DevExpress.Analytics.Utils.ModelSerializer
)
#Parameters
Name | Type | Description |
---|---|---|
_meta | ICustom |
|
model |
any | A JSON object used for dashboard deserialization. Do not pass this parameter directly. |
serializer | Model |
An object used for dashboard deserialization. Do not pass this parameter directly. |
#Properties
#coloringDimensions Property
#Declaration
TypeScript
coloringDimensions: ko.ObservableArray<DevExpress.Dashboard.Model.DataItemLink>
#Property Value
Type |
---|
Observable |
#coloringMeasures Property
#Declaration
TypeScript
coloringMeasures: ko.ObservableArray<DevExpress.Dashboard.Model.DataItemLink>
#Property Value
Type |
---|
Observable |
#coloringOptions Property
#Declaration
TypeScript
coloringOptions: DevExpress.Dashboard.Model.DashboardItemColoringOptions
#Property Value
Type |
---|
Dashboard |
#colorScheme Property
#Declaration
TypeScript
colorScheme: ko.ObservableArray<DevExpress.Dashboard.Model.ColorSchemeEntry>
#Property Value
Type |
---|
Observable |
#customBindings Property
#Declaration
TypeScript
get customBindings(): Array<DevExpress.Dashboard.Model.ICustomItemBinding>
#Property Value
Type |
---|
ICustom |
#customInteractivity Property
#Declaration
TypeScript
get customInteractivity(): any
#Property Value
Type |
---|
any |
#customItemType Property
#Declaration
TypeScript
customItemType: ko.Observable<string>
#Property Value
Type |
---|
Observable<string> |
#customMetadata Property
#Declaration
TypeScript
customMetadata: {}
#interactivityOptions Property
#Declaration
TypeScript
interactivityOptions: any
#Property Value
Type |
---|
any |
#interactivityTargets Property
#Declaration
TypeScript
interactivityTargets: ko.ObservableArray<DevExpress.Dashboard.Model.DataItemLink>
#Property Value
Type |
---|
Observable |
#ItemType Property
#Declaration
TypeScript
static ItemType: string
#Property Value
Type |
---|
string |
#legacyCustomProperties Property
#Declaration
TypeScript
get legacyCustomProperties(): Array<DevExpress.Dashboard.Model.ICustomItemProperty>
#Property Value
Type |
---|
ICustom |
#sliceTables Property
#Declaration
TypeScript
sliceTables: ko.ObservableArray<DevExpress.Dashboard.Model.SliceTable>
#Property Value
Type |
---|
Observable |
#Methods
#getBindingValue(propertyName) Method
#Declaration
TypeScript
getBindingValue(
propertyName: string,
index?: number
): Array<DevExpress.Dashboard.Model.ICustomItemBindingValue>
#Parameters
Name | Type |
---|---|
property |
string |
index | number |
#Returns
Type |
---|
ICustom |
#getInfo Method
#Declaration
TypeScript
getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray
#Returns
Type |
---|
ISerialization |
#getPropertyInfo(p) Method
#Declaration
TypeScript
static getPropertyInfo(
p: DevExpress.Dashboard.Model.ICustomItemProperty
): DevExpress.Dashboard.Metadata.IDashboardSerializationInfo
#Parameters
Name | Type |
---|---|
p | ICustom |
#Returns
Type |
---|
IDashboard |
#isDrillDownAllowed Method
#Declaration
TypeScript
isDrillDownAllowed(): boolean
#Returns
Type |
---|
boolean |
#isFilterAllowed Method
#Declaration
TypeScript
isFilterAllowed(): boolean
#Returns
Type |
---|
boolean |
#iterateData(action) Method
#Declaration
TypeScript
iterateData(
action: (item: DevExpress.Dashboard.Model.ICustomDataRow) => any,
sliceTableName?: string
): void
#Parameters
Name | Type |
---|---|
action | (item: ICustom |
slice |
string |