Set Text In The Ui

Discussion in 'Buildbox 3.0' started by Scriv, Feb 11, 2019.

Tags:
  1. Scriv

    Scriv Boxer

    Joined:
    Oct 28, 2018
    Messages:
    50
    Likes Received:
    22
    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:
    50
    Likes Received:
    22
    or anyone got the most recent API list cheers
     
  3. weboha

    weboha Avid Boxer

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

    redcoder Boxer

    Joined:
    May 24, 2019
    Messages:
    4
    Likes Received:
    0
    Hi weboha, I cannot find the setText in the API. May I know where can I get the list of methods available? Where do you find this setText method?
     

Share This Page