ZoomCharts Documentation

GeoChart.settings.linkMenu.buttons

This section is defined by the type ItemsChartSettingsMenuButton.
Introduced in version 1.12.0.

Describes a custom button that is added to the menu.

Properties

className: string
Default value: null

The CSS class that is applied to the HTML link element (the button).

onClick: (target: ItemsChartNode | ItemsChartLink, button: HTMLAnchorElement) => void
Default value: null

The callback that will be invoked when the menu is clicked.

Parameters

The link or node for which the button is being created.

The HTML element that represents the button.

onInit: (target: ItemsChartNode | ItemsChartLink, button: HTMLAnchorElement) => void
Default value: null

The callback that will be invoked when the menu button is first created for the particular object.

Parameters

The link or node for which the button is being created.

The HTML element that represents the button.

onRefresh: (target: ItemsChartNode | ItemsChartLink, button: HTMLAnchorElement) => void
Default value: null

The callback that will be invoked when the menu is being opened after creation. The callback is also invoked for every button after any menu button is clicked.

Parameters

The link or node for which the button is being created.

The HTML element that represents the button.

Default value: null

The text (HTML is supported) that is displayed within the button.

title: string
Default value: null
Introduced in version 1.17.2.

Tooltip that is displayed while hovering over the button. Leaving null uses text.

X