You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! In my app, I'm using svg-gauge and it looks wonderful!.
I would like to have a destroy function on the gauge object, to remove the gauge again. This helps to mount/unmount new templates..
Right now I have to remove the gauge container child elements on my own. Maybe there are also some eventlisteners that need to be removed
The text was updated successfully, but these errors were encountered:
Hello @MartinMuzatko , can you specifically tell me what you are trying to do? The gauge currently appends to the container its attached. Are you re-creating the gauge and you want to replace the existing gauge?
Thanks,
Aniket
Hello @naikus. Right now, I think I found a workaround to check if the gauge already exists and otherwise update the current one. I know from most components I use like this, that they provide a teardown mechanism, to remove the element and all the event-listeners for convenience. Example: https://flickity.metafizzy.co/api.html#destroy
Hello! In my app, I'm using svg-gauge and it looks wonderful!.
I would like to have a destroy function on the gauge object, to remove the gauge again. This helps to mount/unmount new templates..
Right now I have to remove the gauge container child elements on my own. Maybe there are also some eventlisteners that need to be removed
The text was updated successfully, but these errors were encountered: