//-- Option Dialog
var optdialog = Ti.UI.createOptionDialog({
cancel: 2,
options: ['2 hours', '4 hours', '8 hours'],
buttonNames: ["Cancel"],
selectedIndex: 2,
destructive: 0,
title: 'Sleep'
});
optdialog.show();
optdialog.addEventListener('click', function(e){
Ti.API.info("option dialog ended with: " + e.index);
});
var optdialog = Ti.UI.createOptionDialog({
cancel: 2,
options: ['2 hours', '4 hours', '8 hours'],
buttonNames: ["Cancel"],
selectedIndex: 2,
destructive: 0,
title: 'Sleep'
});
optdialog.show();
optdialog.addEventListener('click', function(e){
Ti.API.info("option dialog ended with: " + e.index);
});
No comments:
Post a Comment