mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
Note for OS X, regarding sheets.
Added a note for OS X users, to tell how to present dialogs as sheets.
This commit is contained in:
@@ -11,6 +11,8 @@ var dialog = require('dialog');
|
||||
console.log(dialog.showOpenDialog({ properties: [ 'openFile', 'openDirectory', 'multiSelections' ]}));
|
||||
```
|
||||
|
||||
**Note for OS X**: If you want to present dialogs as sheets, the only thing you have to do is to provide a `BrowserWindow` reference in the `browserWindow` parameter.
|
||||
|
||||
## dialog.showOpenDialog([browserWindow], options, [callback])
|
||||
|
||||
* `browserWindow` BrowserWindow
|
||||
|
||||
Reference in New Issue
Block a user