Contents

MessageDialogButton

A button in a message dialog.

Example 

import { app } from '@mobrowser/api';

const win = app.createWindow()
app.showMessageDialog({
  parentWindow: win,
  title: 'Confirm',
  message: 'Do you want to continue?',
  buttons: [
    { label: 'Cancel', type: 'secondary' },
    { label: 'OK', type: 'primary' }
  ]
})

Properties 

label 

readonly label: string;

The label of the button.

type 

readonly type: MessageDialogButtonType;

The type of the button. If not provided, the button will be a regular button. Default: ‘regular’