Skip to main content

updateSettings

since 0.9.4

Description

Applies any changes that were done to the settings object and 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.

Signatures

function updateSettings()JavaScript
alphaTab('updateSettings')jQuery
void UpdateSettings().net

Parameters

None

Returns

Nothing

Examples

var api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.settings.scale = 2.0;
api.updateSettings();
api.render();
var at = $('#alphaTab');
at.alphaTab('settings').scale = 2.0;
at.alphaTab('updateSettings');
at.alphaTab('render');
var api = new AlphaTabApi<MyControl>(...);

api.Settings.Scale = 2.0;
api.UpdateSettings();
api.Render()