sipeng
Posts: 17
Joined: Thu Mar 14, 2024 10:46 pm

Highcharts Dashboard "Confirm" button events on edit mode settings menu

Hi,

I would like to tie some application functionalities with the "Confirm" events on the Highcharts dashbaord Setting menu, after user changing the chart configurations.

For example, in this demo https://jsfiddle.net/xLj9k0fg/, after user changing the chart title and clicking the "confirm" button, i would like to console log a message "configuration changed!".

Could you please help? Thanks much!!
User avatar
dawid.d
Site Moderator
Posts: 1197
Joined: Thu Oct 06, 2022 11:31 am

Re: Highcharts Dashboard "Confirm" button events on edit mode settings menu

Hi again!

I have prepared a simple custom demo for you with an added click event listener to the button.

Demo: https://jsfiddle.net/BlackLabel/mwez0L94/

Let me know if that was what you were looking for!
Best regards!
Dawid Draguła
Highcharts Developer
sipeng
Posts: 17
Joined: Thu Mar 14, 2024 10:46 pm

Re: Highcharts Dashboard "Confirm" button events on edit mode settings menu

Hi there,

I would like to follow up on this question. We were following your example and was able to add this extension to the confirm button to register customize events using dashboard v2.

We recently upgraded to V3. but this extension seems no longer working anymore. We're seeing the same issue in the example you shared. There's some script error and the confirm and cancel buttons are missing from settings panel.

Can you please help with this topic or maybe if we have a better way in V3 to register customized events to Confirm/Cancel button now so we do not have to write extensions.

Thanks much!
User avatar
dawid.d
Site Moderator
Posts: 1197
Joined: Thu Oct 06, 2022 11:31 am

Re: Highcharts Dashboard "Confirm" button events on edit mode settings menu

Hello,

One argument was added to the `renderContent` method, which caused the wrap to stop working correctly. Here’s the fix: https://jsfiddle.net/BlackLabel/y0x71zc8/

We didn’t add the events in the new version; it seems we didn’t create a ticket for the feature request, so it slipped through. To make sure it doesn’t happen again, I’ve created one here: https://github.com/highcharts/highcharts/issues/22131

Best regards
Dawid Draguła
Highcharts Developer
sipeng
Posts: 17
Joined: Thu Mar 14, 2024 10:46 pm

Re: Highcharts Dashboard "Confirm" button events on edit mode settings menu

Ah i see. So one more param was required from the wrap function.

Thanks so much for helping with the fix and looking forward to getting this feature in upcoming releases!

Return to “Highcharts Dashboards”