Skip to main content

destroy

since 0.9.4

Description​

This function destroys the alphaTab control and tries to restore the initial state of the UI. This might be useful if your 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.

Signatures​

void Destroy().net
function destroy()JavaScript
alphaTab('destroy')jQuery

Parameters​

None

Returns​

Nothing

Examples​

var api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.destroy();
$('#alphaTab').alphaTab('destroy');
var api = new AlphaTabApi<MyControl>(...);
api.Destroy();