JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › How can I destroy the Smart instance after I created it? › Reply To: How can I destroy the Smart instance after I created it?
May 13, 2021 at 1:00 pm
#101802
Member
Hi mannok,
When using SmartQueryBuilder you can ‘destroy’ it by using the remove()
method like in the following code snippet:
let queryBuilder = document.getElementById('queryBuilder');
queryBuilder.remove();
One thing to note here is that the remove()
method removes the element from DOM.
Let me know if that works for you!
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
Smart UI Team
https://www.htmlelements.com/