Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > destroy

Surface.destroy() method#

Cleans up the Surface. When using a library integration such as Angular/React/Vue, this method will be called automatically when the associated component is unloaded. If you're using vanilla Toolkit, you might want to call this method if you're cleaning up your UI and you don't need this Surface any longer.

Signature:

destroy(): void;

Returns:

void