How to hide plugin panel instead of closing it

Do you want to: Ask a how-to question

Now I have a ‘hello-world’ plugin, and when I click the close button, it will be removed from the leftMenu bar. What I want is that when the close btn is clicked, the plugin is still live, just hide panel, like the below picture.


How to modify the current button function ?

window.Asc.plugin.button = function (id) {
    this.executeCommand('close', '');
};

Hello @Jie

Have you tried closing the window instead? Please refer to this documentation:
https://api.onlyoffice.com/docs/plugin-and-macros/customization/windows-and-panels/#closing-a-window