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

how to remove the default arrow image on tableview link haschild shown on right hand side of table view

$
0
0

how to remove the arrow image on tableview link haschild shown on right hand side of table view

i dont want to show the default arrow image show on right hand side of tableview which has a child and path to another file

// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
 
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
 
 
 
 
//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({  
    title:'Custom Rows',
    backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({  
    icon:'KS_nav_views.png',
    title:'Custom Rows',
    window:win1
});
 
 
var RegData = [
{ leftImage:'es.png', title:"Spain", hasChild:true },
{ leftImage:'gb.png', title:"United Kingdom", hasChild:true },
{ leftImage:'us.png', title:"United States", hasChild:true },
{ leftImage:'fr.png', title:"France", hasChild:true }
 
];
 
var TheTable = Titanium.UI.createTableView({});
 
 
 
var CustomData = [
{ flag:'es.png', country:"Spain", trend:'up.png', percent:'28%' ,hasChild:true },
{ flag:'gb.png', country:"United Kingdom", trend:'down.png', percent:'-3%', hasChild:true },
{ flag:'us.png', country:"United States", trend:'up.png', percent:'8%', hasChild:true },
{ flag:'fr.png', country:"France", trend:'down.png', percent:'-40%', hasChild:true }
 
];
 
 
 
 
var data=[];
 
for (var i = CustomData.length - 1; i >= 0; i--){
 
    var row = Titanium.UI.createTableViewRow();
 
    var flag =  Titanium.UI.createImageView({
        url:CustomData[i].flag,
        width:32,
        height:32,
        left:4,
        top:2
    });
 
 
    var country = Titanium.UI.createLabel({
        text:CustomData[i].country,
        font:{fontSize:16,fontWeight:'bold'},
        width:'auto',
        textAlign:'left',
        top:2,
        left:40,
        height:16
    });
 
    var percent =  Titanium.UI.createLabel({
        text:CustomData[i].percent,
        font:{fontSize:12,fontWeight:'bold'},
        width:'auto',
        textAlign:'left',
        bottom:0,
        left:60,
        height:12
    });
 
    var trend =  Titanium.UI.createImageView({
        url:CustomData[i].trend,
        width:16,
        height:16,
        right:10
    });
 
    row.add(flag);
    row.add(country);
    row.add(percent);
    row.add(trend);
    row.hasChild=CustomData[i].hasChild;
    row.className = 'coutry_row';
 
 
    data.push(row);
};
 
 
TheTable.setData(data);
 
win1.add(TheTable);
 
//
//  add tabs
//
tabGroup.addTab(tab1);  
 
 
// open tab group
tabGroup.open();

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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