01-02-2020 16:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-02-2020 16:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
I must be missing something, but I can't figure out how to display a string variable in the index.gui file.
Any help would be appreciated.
Answered! Go to the Best Answer.
Accepted Solutions
01-03-2020 08:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-03-2020 08:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Unfortunately, there is no data-binding mechanism here. You need to get the UI element in your app/index.js by calling
let element = getElementById("YOU_UI_ELEMENT_ID")
and then set the text on the UI element object.
element.text = "YOUR_TEXT";

01-02-2020 16:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


01-02-2020 16:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
You can't. You have to use javascript to maniplate the appropriate index.gui element.
Gondwana Software

01-03-2020 08:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-03-2020 08:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Unfortunately, there is no data-binding mechanism here. You need to get the UI element in your app/index.js by calling
let element = getElementById("YOU_UI_ELEMENT_ID")
and then set the text on the UI element object.
element.text = "YOUR_TEXT";

01-04-2020 12:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-04-2020 12:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
How do I get the ui element id and where do I put the variable? Would it be
element.text = var test;
or not?
Sry for asking stupid questions 😉

01-04-2020 12:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


01-04-2020 12:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Have a look at the example code here.
Gondwana Software
