adding new line to textarea

You must Login before you can answer or comment on any questions.

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...

1 Answer

Your Answer

Think you can help? Login to answer this question!