jQM-Windows-mDialog - mDialog Menus - Lists
mDialog
Menu Mode - Lists
Simply put, menu mode allows you to pass an object of buttons with associated functions. This shows this working in “list” mode.
$('<div>').mdialog({
useMenuMode: true,
menuButtonType: 'list',
popDismissable: false,
closeButton: true,
menuHeaderText: 'Buttons',
menuSubtitle: 'Pick one, eh?',
menuMinWidth: '300px',
buttons: {
'OK': {
click: function () {
alert('You clicked OK');
}
},
'Cancel': {
click: function () {
alert('You clicked CANCEL');
},
icon: "delete",
theme: "b",
}
}
});