diff --git a/website/docs/reference/runtime/dialog.mdx b/website/docs/reference/runtime/dialog.mdx index fb47d34cb..88fc5ea40 100644 --- a/website/docs/reference/runtime/dialog.mdx +++ b/website/docs/reference/runtime/dialog.mdx @@ -75,16 +75,16 @@ type OpenDialogOptions struct { TreatPackagesAsDirectories bool } ``` -| Field | Description | Win | Mac | -| -------------------------- | ---------------------------------------------- | --- | --- | -| DefaultDirectory | The directory the dialog will show when opened | ✅ | ✅ | -| DefaultFilename | The default filename | ✅ | ✅ | -| Title | Title for the dialog | ✅ | ✅ | -| [Filters](#filefilter) | A list of file filters | ✅ | ✅ | -| ShowHiddenFiles | Show files hidden by the system | | ✅ | -| CanCreateDirectories | Allow user to create directories | | ✅ | -| ResolvesAliases | If true, returns the file not the alias | | ✅ | -| TreatPackagesAsDirectories | Allow navigating into packages | | ✅ | +| Field | Description | Win | Mac | Lin | +| -------------------------- | ---------------------------------------------- | --- | --- | --- | +| DefaultDirectory | The directory the dialog will show when opened | ✅ | ✅ | ✅ | +| DefaultFilename | The default filename | ✅ | ✅ | ✅ | +| Title | Title for the dialog | ✅ | ✅ | ✅ | +| [Filters](#filefilter) | A list of file filters | ✅ | ✅ | ✅ | +| ShowHiddenFiles | Show files hidden by the system | | ✅ | ✅ | +| CanCreateDirectories | Allow user to create directories | | ✅ | | +| ResolvesAliases | If true, returns the file not the alias | | ✅ | | +| TreatPackagesAsDirectories | Allow navigating into packages | | ✅ | | ### SaveDialogOptions @@ -101,15 +101,15 @@ type SaveDialogOptions struct { } ``` -| Field | Description | Win | Mac | -| -------------------------- | ---------------------------------------------- | --- | --- | -| DefaultDirectory | The directory the dialog will show when opened | ✅ | ✅ | -| DefaultFilename | The default filename | ✅ | ✅ | -| Title | Title for the dialog | ✅ | ✅ | -| [Filters](#filefilter) | A list of file filters | ✅ | ✅ | -| ShowHiddenFiles | Show files hidden by the system | | ✅ | -| CanCreateDirectories | Allow user to create directories | | ✅ | -| TreatPackagesAsDirectories | Allow navigating into packages | | ✅ | +| Field | Description | Win | Mac | Lin | +| -------------------------- | ---------------------------------------------- | --- | --- | --- | +| DefaultDirectory | The directory the dialog will show when opened | ✅ | ✅ | ✅ | +| DefaultFilename | The default filename | ✅ | ✅ | ✅ | +| Title | Title for the dialog | ✅ | ✅ | ✅ | +| [Filters](#filefilter) | A list of file filters | ✅ | ✅ | ✅ | +| ShowHiddenFiles | Show files hidden by the system | | ✅ | ✅ | +| CanCreateDirectories | Allow user to create directories | | ✅ | | +| TreatPackagesAsDirectories | Allow navigating into packages | | ✅ | | ### MessageDialogOptions @@ -123,20 +123,25 @@ type MessageDialogOptions struct { CancelButton string } ``` -| Field | Description | Win | Mac | -| ------------- | ------------------------------------------------------------------------- | --- | --- | -| Type | The type of message dialog, eg question, info... | ✅ | ✅ | -| Title | Title for the dialog | ✅ | ✅ | -| Message | The message to show the user | ✅ | ✅ | -| Buttons | A list of button titles | | ✅ | -| DefaultButton | The button with this text should be treated as default. Bound to `return` | | ✅ | -| CancelButton | The button with this text should be treated as cancel. Bound to `escape` | | ✅ | +| Field | Description | Win | Mac | Lin | +| ------------- | ------------------------------------------------------------------------- | --- | --- | --- | +| Type | The type of message dialog, eg question, info... | ✅ | ✅ | ✅ | +| Title | Title for the dialog | ✅ | ✅ | ✅ | +| Message | The message to show the user | ✅ | ✅ | ✅ | +| Buttons | A list of button titles | | ✅ | | +| DefaultButton | The button with this text should be treated as default. Bound to `return` | | ✅ | | +| CancelButton | The button with this text should be treated as cancel. Bound to `escape` | | ✅ | | #### Windows Windows has standard dialog types in which the buttons are not customisable. The value returned will be one of: "Ok", "Cancel", "Abort", "Retry", "Ignore", "Yes", "No", "Try Again" or "Continue" +#### Linux + +Linux has standard dialog types in which the buttons are not customisable. +The value returned will be one of: "Ok", "Cancel", "Yes", "No" + #### Mac A message dialog on Mac may specify up to 4 buttons. If no `DefaultButton` or `CancelButton` is given, the first button @@ -222,6 +227,19 @@ dialog:

+#### Linux + +Linux allows you to use multiple file filters in dialog boxes. Each FileFilter will show up as a separate entry in the +dialog: + +
+ +
+
+
+
+ + #### Mac Mac dialogs only have the concept of a single set of patterns to filter files. If multiple FileFilters are provided,