dashboard-js-devexpress-dot-dashboard-dot-model-10700cdc.md
Serves as the base class for dashboard items.
export abstract class DashboardItem extends TypedSerializableModel implements IDashboardComponent, ICustomPropertiesProvider
Dashboard items are UI elements used to display data within the Dashboard. The DashboardItem class provides basic functionality for all types of dashboard items. All dashboard items can be divided into the following groups:
The Dashboard.items property provides access to a collection of items within a dashboard.
You can identify a specific dashboard item using its component name (the DashboardItem.componentName property).
To specify or obtain the parent group / tab container for the current dashboard item, use the DashboardItem.parentContainer property.
For examples on how to create a dashboard item, see the corresponding DashboardItem descendant’s description.
IDashboardComponent
ICustomPropertiesProvider
SerializableModel TypedSerializableModel DashboardItem GroupItem
Initializes a new instance of the DashboardItem class.
constructor(
dashboardItemJSON?: any,
serializer?: DevExpress.Analytics.Utils.ModelSerializer,
info?: DevExpress.Dashboard.Metadata.IDashboardSerializationInfoArray
)
| Name | Type | Description |
|---|---|---|
| dashboardItemJSON | 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.
| | info | IDashboardSerializationInfoArray |
An array of objects that provide serialization info.
|
Specifies the component name of the dashboard item.
componentName: ko.Observable<string>
| Type | Description |
|---|---|
| Observable<string> |
A string that is the component name of the dashboard item.
|
The dashboard item’s component name is used in code to identify the dashboard item object. For example, you can use this name when calling the ViewerApiExtension.setMasterFilter or ViewerApiExtension.performDrillDown methods.
The name is displayed in the dashboard item caption. It does not have to be unique.
The componentName identifies a dashboard item in a dashboard container. It has to be unique in the dashboard. Do not change a component name for the created dashboard items on the client side.
Gets custom properties available for the current dashboard item.
customProperties: DevExpress.Dashboard.Model.CustomProperties
| Type | Description |
|---|---|
| CustomProperties |
A CustomProperties object that provides access to the item’s custom properties.
|
Tip
Documentation : Custom Properties
See Also
Create Custom Properties in the Web Dashboard
Specifies the dashboard item’s name, displayed in the caption.
name: ko.Observable<string>
| Type | Description |
|---|---|
| Observable<string> |
A string that specifies the name of the dashboard item.
|
The Name is displayed in the dashboard item caption. It does not have to be unique.
The componentName identifies a dashboard item in a dashboard container. It has to be unique in the dashboard.
Specifies the dashboard item container (a group or a tab page) that stores the current item.
parentContainer: ko.Observable<string>
| Type | Description |
|---|---|
| Observable<string> |
The component name of the dashboard item group / tab page that stores the current item.
|
showCaption: ko.Observable<boolean>
| Type |
|---|
| Observable<boolean> |
Disposes of all resources associated with this DashboardItem.
dispose(): void
getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray
| Type |
|---|
| ISerializationInfoArray |
getUniqueNamePrefix(): string
| Type |
|---|
| string |