@tauri-apps/plugin-dialog - v2.4.2
    Preparing search index...

    Interface MessageDialogOptions

    2.0.0

    interface MessageDialogOptions {
        title?: string;
        kind?: "info" | "warning" | "error";
        okLabel?: string;
        buttons?: MessageDialogButtons;
    }
    Index

    Properties

    title?: string

    The title of the dialog. Defaults to the app name.

    kind?: "info" | "warning" | "error"

    The kind of the dialog. Defaults to info.

    okLabel?: string

    The label of the Ok button.

    Use MessageDialogOptions.buttons instead.

    The buttons of the dialog.

    // Use system default buttons texts
    await message('Hello World!', { buttons: 'Ok' })
    await message('Hello World!', { buttons: 'OkCancel' })

    // Or with custom button texts
    await message('Hello World!', { buttons: { ok: 'Yes!' } })
    await message('Take on the task?', {
    buttons: { ok: 'Accept', cancel: 'Cancel' }
    })
    await message('Show the file content?', {
    buttons: { yes: 'Show content', no: 'Show in folder', cancel: 'Cancel' }
    })

    2.4.0