Hi there,
I'm very new to JS so can u tell me what is wrong with this simple piece of code to trigger a button being clicked.
Here is what I am trying to convert into JS:
+ ButtonPlay: On clicked
-> System: Go to Layout 1
And I tried this code:
runOnStartup(runtime => {
runtime.objects.ButtonPlay.addEventListener("click", e => {
runtime.goToLayout("Layout 1");
});
});
-----------
But wouldnt work.
Can anyone help.
Thanks in advance.
Radkampfwagen