destructor

destructs the calling object

void destructor();

Example

function recreate_grid(){
    if (grid)
        grid.destructor();
 
    grid = new webix.ui({
    ..//new grid config
    });
}

Related samples

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.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix web control library and page of lists in javascript product.