Interface to describe parameters that are used to construct a custom button for the On-Screen Menu.

Hierarchy

  • OnScreenMenuCustomButtonParams

Properties

action: ((chart: ChartXY<PointMarker, UIBackground>) => void)

Type declaration

color?: string

Optional color value for this button. If no value is specified, the color will be chosen from the theme.

icon?: string

Path to an icon that this button will display.

label?: string

Optional label to be displayed on the button.

opacity?: string

Optional opacity for the button. Accepts a value between 0 and 1, were 0 is transparent and 1 is opaque.

Optional value for the shape of the button.