Back to Devexpress

ItemElementCustomColorEventArgs Interface

dashboard-js-devexpress-dot-dashboard-ffe77205.md

latest2.8 KB
Original Source

ItemElementCustomColorEventArgs Interface

Provides information for the ViewerApiExtensionOptions.onItemElementCustomColor event.

Declaration

ts
export interface ItemElementCustomColorEventArgs extends DashboardItemBaseEventArgs

Remarks

Use the onItemElementCustomColor handler to raise the ItemElementCustomColor event.

Inherited Members

dashboardItem

itemName

Inheritance

DashboardItemBaseEventArgs ItemElementCustomColorEventArgs

Properties

getColor Property

Gets the color of the current dashboard item element.

Declaration

ts
getColor: () => string

Property Value

Type
() => string

getMeasures Property

Gets measures corresponding to the current dashboard item element.

Declaration

ts
getMeasures: () => Array<DevExpress.Dashboard.Data.ItemDataMeasure>

Property Value

Type
() => ItemDataMeasure[]

getTargetElement Property

Gets the axis point tuple that corresponds to the current dashboard item element.

Declaration

ts
getTargetElement: () => DevExpress.Dashboard.Data.ItemDataAxisPointTuple

Property Value

Type
() => ItemDataAxisPointTuple

setColor Property

Sets the color of the current dashboard item element.

Declaration

ts
setColor: (color: string) => void

Property Value

Type
(color: string) => void

Remarks

To specify the required dashboard item element, use the getTargetElement and getMeasures properties.

The setColor property supports the following colors:

  • hexadecimal colors;
  • RGB colors;
  • RGBA colors (not supported in Internet Explorer 8);
  • predefined/cross-browser color names;
  • predefined SVG colors (not supported in Internet Explorer 8).