mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
committed by
GitHub
parent
45981851e3
commit
77ef1cd849
@@ -95,10 +95,10 @@ interface MessageDialogOptions {
|
||||
* import { open } from '@tauri-apps/api/dialog';
|
||||
* const selected = await open({
|
||||
* multiple: true,
|
||||
* filters: {
|
||||
* filters: [{
|
||||
* name: 'Image',
|
||||
* extensions: ['png', 'jpeg']
|
||||
* }
|
||||
* }]
|
||||
* });
|
||||
* if (Array.isArray(selected)) {
|
||||
* // user selected multiple files
|
||||
@@ -159,10 +159,10 @@ async function open(
|
||||
* import { save } from '@tauri-apps/api/dialog';
|
||||
* const filePath = await save({
|
||||
* multiple: true,
|
||||
* filters: {
|
||||
* filters: [{
|
||||
* name: 'Image',
|
||||
* extensions: ['stronghold']
|
||||
* }
|
||||
* }]
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user