destroy
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 |
fun destroy(): UnitAndroid |
Parameters​
None
Returns​
Nothing
Examples​
- JavaScript
- jQuery
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.destroy();
$('#alphaTab').alphaTab('destroy');
var api = new AlphaTabApi<MyControl>(...);
api.Destroy();
val api = AlphaTabApi<MyControl>(...)
api.destroy()