But how do actually trigger/reach markup stuff from the js code. Let’s say that I have a button;
<Button ux:Name="button1" Opacity="0.5"/>
And in the js;
setTimeout(delayedCall, 500);
function delayedCall() {
//Here I want to change the opacity for the button
//But I guess I somehow need to connect/declare button1 in the js code.
button1.opacity = 1;
}
module.exports = {
delayedCall: delayedCall
};
The above solution might seem a bit cumbersome, but in general you should not use JS to animate UI parameters (performance trouble). Use triggers and animators in pure UX instead.
If you describe what you want to acheive, we may have a more elegant solution for you