highcharts / highcharts-editor

https://www.highcharts.com/products/highcharts-editor
Other
248 stars 95 forks source link

Hide Help Icon In the Editor Window #209

Open BoopathySrinivasan opened 4 years ago

BoopathySrinivasan commented 4 years ago

We try to hide the help icon inside the editor window . Is it possible to hide that icon?

MarineLohezic commented 3 years ago

Hi,

I did that by adding :

// Remove help buttons
    const toolboxes = Array.from(document.getElementsByClassName('highed-toolbox-bar-icon'));
    for (const toolbox of toolboxes) {
      (toolbox as HTMLElement).addEventListener('click', () => {
        const helpElement = document.getElementsByClassName('highed-toolbox-help');
        if (helpElement[0]) {
          helpElement[0].remove();
        }
      });
    }

(angular - DrawerEditor)