콘텐츠로 이동

message

이 콘텐츠는 아직 번역되지 않았습니다.

Module @netwiv/api/plugins/dialog · Kind Function

import { message } from '@netwiv/api/plugins/dialog';

Shows a message dialog with an Ok button.

function message(message: string, options?: string | MessageDialogOptions | undefined): Promise<MessageDialogResult>
import { message } from '@netwiv/api/plugins/dialog';
await message('Tauri is awesome', 'Tauri');
await message('File not found', { title: 'Tauri', kind: 'error' });

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.