Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ButtonOptions onclick should be a Function #188

Open
swanthe opened this issue Jan 10, 2020 · 0 comments
Open

ButtonOptions onclick should be a Function #188

swanthe opened this issue Jan 10, 2020 · 0 comments

Comments

@swanthe
Copy link

swanthe commented Jan 10, 2020

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(); } } } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant