destructor
destructs the calling object
function destructor(): void
Example
Section titled “Example”function recreate_grid(){ if (grid) grid.destructor();
grid = webix.grid({ ..//new grid config });}
Details
Section titled “Details”The destructor removes all HTML elements of the object, and detaches all related events.
Unloading destructors for all on-page components are called automatically and generally, you don’t need to care about this.