dashboard-js-devexpress-dot-dashboard-dot-model-66a0c978.md
A custom item that allows you to implement and embed any additional items into the Web Dashboard.
export class CustomItem extends DataDashboardItem
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.
SerializableModel TypedSerializableModel DashboardItem DataDashboardItem CustomItem
Initializes a new instance of the CustomItem class with specified settings.
constructor(
_meta: DevExpress.Dashboard.Model.ICustomItemMetaData,
modelJson?: any,
serializer?: DevExpress.Analytics.Utils.ModelSerializer
)
| 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.
|
coloringDimensions: ko.ObservableArray<DevExpress.Dashboard.Model.DataItemLink>
| Type |
|---|
| ObservableArray<DataItemLink> |
coloringMeasures: ko.ObservableArray<DevExpress.Dashboard.Model.DataItemLink>
| Type |
|---|
| ObservableArray<DataItemLink> |
coloringOptions: DevExpress.Dashboard.Model.DashboardItemColoringOptions
| Type |
|---|
| DashboardItemColoringOptions |
colorScheme: ko.ObservableArray<DevExpress.Dashboard.Model.ColorSchemeEntry>
| Type |
|---|
| ObservableArray<ColorSchemeEntry> |
get customBindings(): Array<DevExpress.Dashboard.Model.ICustomItemBinding>
| Type |
|---|
| ICustomItemBinding[] |
get customInteractivity(): any
| Type |
|---|
| any |
customItemType: ko.Observable<string>
| Type |
|---|
| Observable<string> |
customMetadata: {}
interactivityOptions: any
| Type |
|---|
| any |
interactivityTargets: ko.ObservableArray<DevExpress.Dashboard.Model.DataItemLink>
| Type |
|---|
| ObservableArray<DataItemLink> |
static ItemType: string
| Type |
|---|
| string |
get legacyCustomProperties(): Array<DevExpress.Dashboard.Model.ICustomItemProperty>
| Type |
|---|
| ICustomItemProperty[] |
sliceTables: ko.ObservableArray<DevExpress.Dashboard.Model.SliceTable>
| Type |
|---|
| ObservableArray<SliceTable> |
getBindingValue(
propertyName: string,
index?: number
): Array<DevExpress.Dashboard.Model.ICustomItemBindingValue>
| Name | Type |
|---|---|
| propertyName | string |
| index | number |
| Type |
|---|
| ICustomItemBindingValue[] |
getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray
| Type |
|---|
| ISerializationInfoArray |
static getPropertyInfo(
p: DevExpress.Dashboard.Model.ICustomItemProperty
): DevExpress.Dashboard.Metadata.IDashboardSerializationInfo
| Name | Type |
|---|---|
| p | ICustomItemProperty |
| Type |
|---|
| IDashboardSerializationInfo |
isDrillDownAllowed(): boolean
| Type |
|---|
| boolean |
isFilterAllowed(): boolean
| Type |
|---|
| boolean |
iterateData(
action: (item: DevExpress.Dashboard.Model.ICustomDataRow) => any,
sliceTableName?: string
): void
| Name | Type |
|---|---|
| action | (item: ICustomDataRow) => any |
| sliceTableName | string |