MessageDialogOptions
Module @netwiv/api/plugins/dialog · Kind Interface
import { MessageDialogOptions } from '@netwiv/api/plugins/dialog';Members
Section titled “Members”buttons?
Section titled “buttons?”buttons?: MessageDialogButtons | undefinedThe buttons of the dialog.
Example
// Use system default buttons textsawait message('Hello World!', { buttons: 'Ok' })await message('Hello World!', { buttons: 'OkCancel' })
// Or with custom button textsawait 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' }})kind?: "info" | "warning" | "error" | undefinedThe kind of the dialog. Defaults to info.
okLabel?
Section titled “okLabel?”okLabel?: string | undefinedThe label of the Ok button.
Deprecated Use {@linkcode MessageDialogOptions.buttons} instead.
title?
Section titled “title?”title?: string | undefinedThe title of the dialog. Defaults to the app name.
Upstream since 2.0.0
Descriptions come from the pinned @tauri-apps/plugin-dialog@2.7.3 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.