Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

multiple line on tableview row?

I have my tableview that is pulling records locally as list of addresses, and I'm trying to add something along the lines of

Address (pulled from db)
x miles from location

I can add the x miles by doing the following

data.push({
                    id: rows.fieldByName('id'),
                      lat: rows.fieldByName('lat'),
                    lon: rows.fieldByName('lon'),
                    title: rows.fieldByName('caption') + "\n x miles from location",
                    info: rows.fieldByName('info'),
                    hasChild: true

and it works fine. However, when I click the row, I DONT want it to show the 'x miles from location', thats just for this view only.

So is there another way to do it where its not actually part of the title?

— asked November 7th 2010 by Josh Lewis
  • multiline
  • tableview
1 Comment
  • Josh

    I think we are missing part of the story here. In order for "…it to show the x miles from location", you need to have some code that creates this effect (probably an eventlistener).

    Try to shorten your script to its simplest form which just demonstrates this issue and paste it to github gist, to give us something to work on, and then someone I'm sure will help you.

    Cheers

    Hal

    — commented November 7th 2010 by Paul Dowsett

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.