dashboard-js-devexpress-dot-dashboard-ffe77205.md
Provides information for the ViewerApiExtensionOptions.onItemElementCustomColor event.
export interface ItemElementCustomColorEventArgs extends DashboardItemBaseEventArgs
Use the onItemElementCustomColor handler to raise the ItemElementCustomColor event.
DashboardItemBaseEventArgs ItemElementCustomColorEventArgs
Gets the color of the current dashboard item element.
getColor: () => string
| Type |
|---|
| () => string |
Gets measures corresponding to the current dashboard item element.
getMeasures: () => Array<DevExpress.Dashboard.Data.ItemDataMeasure>
| Type |
|---|
| () => ItemDataMeasure[] |
Gets the axis point tuple that corresponds to the current dashboard item element.
getTargetElement: () => DevExpress.Dashboard.Data.ItemDataAxisPointTuple
| Type |
|---|
| () => ItemDataAxisPointTuple |
Sets the color of the current dashboard item element.
setColor: (color: string) => void
| Type |
|---|
| (color: string) => void |
To specify the required dashboard item element, use the getTargetElement and getMeasures properties.
The setColor property supports the following colors: