Skip to main content

destroy

since 0.9.4

Description​

Destroys the alphaTab control and restores the initial state of the UI. This function destroys the alphaTab control and tries to restore the initial state of the UI. This might be useful if our website is quite dynamic and you need to uninitialize alphaTab from an element again. After destroying alphaTab it cannot be used anymore. Any further usage leads to unexpected behavior.

destroy(): void

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.destroy();