Merge pull request #11832 from electron/enable-window
Add API to enable/disable a window
This commit is contained in:
commit
64f509ea7a
7 changed files with 26 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue