1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    4
    Vote Rating
    0
    avyxu is on a distinguished road

      0  

    Default Unanswered: How to change background color of TextSprite and add image to it?

    Unanswered: How to change background color of TextSprite and add image to it?


    In my radar chart, the label of chart is a TextSprite. I need to change the background color of the label and add an image to the label in order to warn user that the data has problem.

    Does anybody have any idea?

  2. #2
    Sencha User PhiLho's Avatar
    Join Date
    Nov 2011
    Location
    Near Paris, France
    Posts
    140
    Vote Rating
    1
    Answers
    2
    PhiLho is on a distinguished road

      0  

    Default


    TextSprite is a Sprite which has, among other things, a setFill(Color) method. I am suspecting this will change the background color of the sprite (but I haven't tried).
    It has no image support (that's not a Label), so you might need to display an ImageSprite next to it.

Thread Participants: 1