Skip to content

ButtonOptions onclick should be a Function #188

@swanthe

Description

@swanthe

Instead of a DummyOption, ButtonOptions.onclick should be a Function. That way you can add an event function to i.e. the ExportingButtons.contextButton.

From the Highcharts API reference exporting.buttons.contextButton

onclick: functionSince 2.0.0
A click handler callback to use on the button directly instead of the popup menu.

Expected generated code
exporting: { buttons: { contextButton: { menuItems: null, onclick: function () { this.exportChart(); } } } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions