The layout
library can be used to modify the properties of controls. It is a global library and does not need to be imported.
Controls can easily be modified using the following syntax.
layout.{id}.{property} = {value};
<layout>
<row>
<toggle id="my_toggle" text="foo" />
</row>
<row>
<label id="my_label" text="foo" />
</row>
<row>
<slider id="my_slider" progress="0" progressmax="100" />
</row>
</layout>
layout.xml
layout.my_toggle.checked = true;
layout.my_label.text = "bar";
layout.my_slider.progress = 50;
remote.lua
For advanced layout updates (e.g. lists or dialogs), use libs.server.update
instead.