Set Text In The Ui

Discussion in 'Buildbox 3.0 Beta' started by Scriv, Feb 11, 2019 at 3:43 AM.

Tags:
  1. Scriv

    Scriv Boxer

    Joined:
    Oct 28, 2018
    Messages:
    26
    Likes Received:
    16
    anyone got any code to manipulate the user text within the UI?

    I'm trying to display a Goal total something like:---

    _goal = Settings['goal'];
    _GoalString = _goal.toString;
    let _goaltext = this.ui().find('GoalTXT')[0];
    _goaltext.setText(_GoalString);

    I dunno... something along those lines?

    How would you write it?
     
  2. Scriv

    Scriv Boxer

    Joined:
    Oct 28, 2018
    Messages:
    26
    Likes Received:
    16
    or anyone got the most recent API list cheers
     
  3. weboha

    weboha Boxer

    Joined:
    Aug 8, 2018
    Messages:
    95
    Likes Received:
    51
    _goal = Settings['goal'];
    this.entity().component('Label').setText(String(_goal));
     

Share This Page