Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (multiline)
Viewing all articles
Browse latest Browse all 8

adding new line to textarea

$
0
0

Hello,

We have a web service that returns a text with multiple lines example:

This is line 1 /r This is line 2 /r/r This is line 3
Now we want to maintain the lines in the text and insert it into a textarea. How do i do that?

We now have this:

textarea = Titanium.UI.createTextArea({
    value: 'This is line 1 /r This is line 2 /r/r This is line 3', 
    top:10,
    left:10,
    color:'white',
    editable:false,
    enabled:false,
});
Thanks a lot...

Viewing all articles
Browse latest Browse all 8

Trending Articles