Merge pull request #11832 from electron/enable-window

Add API to enable/disable a window
This commit is contained in:
shelley vohr 2018-02-06 14:14:45 -05:00 committed by GitHub
commit 64f509ea7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 26 additions and 1 deletions

View file

@ -847,6 +847,12 @@ the supplied bounds.
Returns [`Rectangle`](structures/rectangle.md)
#### `win.setEnabled(enable)`
* `enable` Boolean
Disable or enable the window.
#### `win.setSize(width, height[, animate])`
* `width` Integer