efenadir
Posts: 31
Joined: Sat Jul 10, 2021 6:32 pm

Add submenu to custom action in stock tools

Hi,

I want to add submenu to custom action that I created in stock tools. For example Shapes actions have 3 submenu's: Label, Circe and Rectangle. I also want to add my custom actions like these submenu's.

I already tried to implement this code, but it is not working.

Code: Select all

definitions: {
          customAnnotation: {
            className: "highcharts-custom-annotation",
            symbol: "text.svg",
            items: ["submenu1", "submenu2"],
            submenu1: {
            symbol: "text.svg"
            }
            submenu2: {
            symbol: "text.svg"
            }	
          },
Thanks!
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Add submenu to custom action in stock tools

Hello efenadir!

We appreciate you reaching out to us!

Could you reproduce the issue in an online editor that I could work on? Then I'll see what could be done here.

I also suggest reading our docs from the links below. :-)

Docs:
https://www.highcharts.com/docs/stock/stock-tools
https://api.highcharts.com/highstock/st ... efinitions

Best regards!
Dominik Chudy
Highcharts Developer

Return to “Highcharts Stock”