Results 1 to 5 of 5

Thread: TextButton won't display HTML text

    Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Ext GWT Premium Member
    Join Date
    Jan 2009
    Location
    Franktown, CO
    Posts
    440
    Vote Rating
    6
      0  

    Question TextButton won't display HTML text

    I'm trying to get a TextButton to display HTML text but it keeps rendering that in plain text, how do I fix this?

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    21
    Vote Rating
    0
      0  

    Default

    Hi,

    Are you using setText() or setHTML() ?

    Cheers
    Rob

  3. #3
    Ext GWT Premium Member
    Join Date
    Jan 2009
    Location
    Franktown, CO
    Posts
    440
    Vote Rating
    6
      0  

    Default

    Rob,

    I'm calling setHTML() however it does the same thing as setText().

    -Dave

  4. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    21
    Vote Rating
    0
      0  

    Default

    Hi,

    Interesting, the implementations are different:

    Code:
      @Override
      public void setText(String text) {
        cell.setText(text);
        redraw();
        // redrawTask.delay(1);
      }
    
      @Override
      public void setHTML(SafeHtml html) {
        setHTML(html.asString());
      }
    
      @Override
      public void setHTML(String html) {
        cell.setHTML(html);
        redrawTask.delay(1);
      }
    Cheers
    Rob

  5. #5
    Sencha User
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Vote Rating
    93
      0  

    Default

    The implementations are different, but the apparent effect is the same - thanks for reporting this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •