tauri_sys

Module dialog

source
Expand description

Native system dialogs for opening and saving files.

The APIs must be added to tauri.allowlist.dialog in tauri.conf.json:

{
    "tauri": {
        "allowlist": {
            "dialog": {
                "all": true, // enable all dialog APIs
                "open": true, // enable file open API
                "save": true // enable file save API
                "message": true,
                "ask": true,
                "confirm": true
            }
        }
    }
}

It is recommended to allowlist only the APIs you use for optimal bundle size and security.

Structs§

Enums§