Community Forum

Ask a Question
Back to All

Closing or hiding the widget

I see that the Localize object has a .destroy() function but this does not remove the widget from the DOM. Other than directly finding the element via id and calling remove on it...
document.getElementById("localize-widget").remove();
Is there any other way to hide your widget programmatically?