highcharts / highcharts-editor

https://www.highcharts.com/products/highcharts-editor
Other
250 stars 96 forks source link

Client Side Events on Toolbar #159

Closed suhashankare closed 6 years ago

suhashankare commented 6 years ago

HI,

I want to attach client side events on the Save button to store chart in component node and Open button event to access stored chart properties from any node, so help me out with this scope and how do i achieve such logic with the help of "Highed"

Thank you -SuHas

cvasseng commented 6 years ago

Hi, this is not possible to do out of the box. The closest you'll get is to add your own icons using:

editor.toolbar.addIcon({
   icon: 'fa-floppy-o',
   click: function () {
        // Do stuff with result of editor.chart.toProject()
    }
});

Also, we try to keep the issue tracker to actual bugs rather than general user questions. Please use the issue template, and if you have user questions in the future, please use one of our support channels at: https://www.highcharts.com/support