Skip to content

Commit

Permalink
small addition to dialog docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jwahlstrand committed Nov 24, 2024
1 parent 13157b6 commit 5a5b15c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/src/manual/dialogs.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ GtkFileFilter(pattern = "", mimetype = "")
```
A human-readable name can optionally be provided using a keyword argument.

A list of patterns or filters to use is passed in as an argument to `open_dialog` or `save_dialog`. For example,
```julia
open_dialog("Pick a file", parent_window, ["*.h5","*.txt"]) do name
# do something with the file
end
```

## Custom dialogs

You can define your own type of dialog by creating a window that closes and calls a function when a button is pressed.
Expand Down

0 comments on commit 5a5b15c

Please sign in to comment.