目录

MessageDialogCheckbox

A checkbox 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' }
  ],
  checkbox: { label: 'Remember me', checked: true }
})

Properties 

label 

readonly label: string;

The label of the checkbox.

checked 

readonly checked: boolean;

Whether the checkbox is checked. Default: false