Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Dynamically change class of TableView row

$
0
0

Hi Friends,

 I am creating android app using alloy framework. Below is the code i used for collection view data binding. but here i want dynamically change style of row. ie some time "label" align left or right depend upon model

<TableView dataCollection="chatsRestModel" dataTransform="chatstransform" id="chattable">
        <TableViewRow backgroundSelectedColor="#D8D8D8" title="{msg}" >
            <Label id="chattext" text="{msg}" class="{className}" />
        </TableViewRow>
</TableView>

".left"
{
    //left align style
}
 
 
".right"
{
//right align style
}

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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