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

ButtonBar ignores enabled property on labels

$
0
0

Here's a quick demo - am I missing something? mobilesdk 1.2.0

var win = Titanium.UI.createWindow({ 
    backgroundColor:'#fff', 
    barColor: '#660000', 
    tabBarHidden:true
});
// create tab group to manage multiple windows
var tabGroup = Titanium.UI.createTabGroup();
var tab = Titanium.UI.createTab({  
    title:'Bug Demo',
    window:win
});
tabGroup.addTab(tab);
tabGroup.open();
 
var tc = Ti.UI.createButtonBar({
    labels: [{
        title: 'disabled',
        enabled: false
    },{
        title: 'enabled',
        enabled: true
    }],
    backgroundColor: '#660000'
});
win.rightNavButton = tc;
Update: it turns out that setting the style of the buttonbar to Ti.UI.iPhone.SystemButtonStyle.BAR is what makes this work. So I guess it's iPhone only (of course, the buttonbar usually lives in the iPhone-only title bar or iPhone-only Toolbar, so maybe it's OK that way).

Thanks for giving me a working example to compare to, Clint.


Viewing all articles
Browse latest Browse all 17

Trending Articles



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