jQM-Windows-mDialog - mDialog Menus - Buttons

mDialog

Simply put, menu mode allows you to pass an object of buttons with associated functions. This shows this working in “button” mode.

Open Dialog

$('<div>').mdialog({
  useMenuMode: true,
  menuButtonType: 'button',
  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",
    }
  }
});