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

Multiline text in table view row

$
0
0

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:

  1. multiline label
  2. multiline text textwrap linebreaks in buttons and table view items
  3. Display resultset (text) within a label, multiline
  4. Multiline Label?
  5. mutiline tablerow from database

Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>