Same question link in Stack Overflow
I'm working on a tableView based application in Titanium. I need to show long text contents in my table view rows.
This is the code I'm using to create my table view row.
var row = Ti.UI.createTableViewRow({
backgroundColor : '#F0F0F0',
color : 'black',
font : { fontSize:10 ,fontWeight:'bold',fontFamily:'Arial'},
height :'80',
title : firstRowContent
});
My issue is I need to wrap the text in my table view row and need to display it in multiline.
In iOS there is lineBreakMode
and numberOfLines
properties. And I can easily do it.
Is there any way to do it in titanium ? I searched a lot, but everyone says that put a '\n' in between the text or add multiple labels.
These are the links I referred: