Hi Peter,
Thank you for your reply.
By closing a widget I mean clicking on the close button. I will try to reopen it with the open method as you suggest. Is there no possibility to remove completely a widget and to restore it when it is needed again. If all widgets are kept on the page, the DOM becomes too overloaded.
Best regards,
Stefan