Skip to main content

updateSettings

since 0.9.4

Applies any changes that were done to the settings object. It also informs the renderer about any new values to consider. By default alphaTab will not trigger any re-rendering or settings update just if the settings object itself was changed. This method must be called to trigger an update of the settings in all components. Then a re-rendering can be initiated using the render method.

updateSettings(): void

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.settings.display.scale = 2.0;
api.updateSettings();
api.render();