Quantcast
Viewing all articles
Browse latest Browse all 8068

Get a row of a tableViewRow and modify his properties - Titanium Alloy

Hello,

I would like to access the properties of the row that I have created to modify them. I have an array call "data". In this array, I have my row object. Each row has custom properties such as "location". I would like to access the first row (for exemple), and modify the "location" proprety.

How do I get the row?

This is how I create the rows and add them to data.

function addHoursToData(){
    var row = Alloy.createController('row', {
    location: $.cityInput.value,
    rownum: data.length,
    backgroundImage:selectRowImage(data.length),
    editable:false,
    }).getView();
    data.push(row);
    ...
}
Thanks a lot!

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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