1. #1
    Sencha User
    Join Date
    Jun 2013
    Posts
    3
    Vote Rating
    0
    israel.camacho is on a distinguished road

      0  

    Default Unanswered: Which control can display text in colors with sencha touch?

    Unanswered: Which control can display text in colors with sencha touch?


    I need to display something like this within a Ext.TextArea using sencha touch:
    Israel Says: Hello, this is a test chat
    Marco Says: Received
    Israel Says: Great
    So far we know there is no HtmlEditor control in Sencha Touch, and the HtmlEditor from extJs does not work properly in iOS, so which control will allow me to display text in colors using sencha touch.

    Does anyone can put me in the right direction?

    Thanks in advance, best regards.

  2. #2
    Sencha User
    Join Date
    Apr 2012
    Posts
    164
    Vote Rating
    9
    Answers
    13
    in4p will become famous soon enough

      0  

    Default


    You can style html text with color and display it in a panel.

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    587
    Vote Rating
    32
    Answers
    35
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default


    Looks like you are planning to write a messenger.
    But the textarea is a standard HTML object which cannot be styled in differen text colors.

    But it looks like you want the old send messages to be colored.

    You might want to concider a list (striped: true) and set the colors for the different stripes (odd and even).
    Then you simply push the text in a store, bind the store to the list and put a textarea (docked:'bottom') below.

    Might work for you until you are more into templates.

Thread Participants: 2