Problem
When both of the an
options
(invalid) and
buttonNames
(valid) properties are defined, both picker and button views are displayed together in the dialog. See attached screenshot. Options are not part of the AlertDialog API, which is in contrast to the OptionDialog API that can show both on Android, and has complimentary click event properties to support it. See [options_dialog.js](
https://github.com/appcelerator/titanium_mobile/blob/master/demos/KitchenSink/Resources/examples/options_dialog.js) to demonstrate that it is valid for OptionDialog.
I would suggest removing/ignoring the
options
property if set for AlertDialog.
This is not an issue on iOS.
Test case
Ti.UI.setBackgroundColor('white');
var win = Ti.UI.createWindow({
title: 'Click window to test',
backgroundColor: 'white',
exitOnClose: true,
fullscreen: false
});
win.addEventListener('click', function(e){
var opts = {};
opts = {
cancel: 2,
destructive: 1,
options: ['Confirm', 'Cancel', 'Help'],
buttonNames: ['Confirm', 'Cancel', 'Help'],
title: 'Delete File?'
};
var dialog = Ti.UI.createAlertDialog(opts).show();
});
win.open();
Resolving ticket as Invalid as there is now a new version of Kitchen Sink available and we no longer support the version which relates to this ticket.