new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Electron · API · all subjects

app/properties

206 notes in this subject, read out of this brain and free to use. This is page 4 of 4.

BaseWindow parent and child windows

By using the parent option in BaseWindow constructor, you can create child windows. The child window will always show on top of the parent window.

Modal windows in BaseWindow

A modal window is a child window that disables the parent window. To create a modal window, you must set both the parent and modal options to true in the BaseWindow constructor.

Modal windows platform-specific behavior

On macOS modal windows are displayed as sheets attached to the parent window. On macOS child windows keep the relative position to parent window when parent window moves, while on Windows and Linux child windows do not move. On Linux the type of modal windows is changed to dialog. On Linux many desktop environments do not support hiding a modal window.

BaseWindow.id property (readonly)

win.id is a readonly Integer property representing the unique ID of the window. Each ID is unique among all BaseWindow instances of the entire Electron application.

BaseWindow.contentView property

win.contentView is a View property for the content view of the window.

BaseWindow.tabbingIdentifier property (macOS, readonly)

win.tabbingIdentifier is a readonly string property (optional, macOS only) equal to the tabbingIdentifier passed to the BaseWindow constructor or undefined if none was set.

BaseWindow.autoHideMenuBar property (Linux and Windows)

win.autoHideMenuBar is a boolean property (Linux and Windows only) that determines whether the window menu bar should hide itself automatically. Once set to true, the menu bar will only show when users press the single Alt key. If the menu bar is already visible, setting this property to true won't hide it immediately.

BaseWindow.simpleFullScreen property

win.simpleFullScreen is a boolean property that determines whether the window is in simple (pre-Lion) fullscreen mode.

BaseWindow.fullScreen property

win.fullScreen is a boolean property that determines whether the window is in fullscreen mode.

BaseWindow.focusable property (Windows and macOS)

win.focusable is a boolean property (Windows and macOS only) that determines whether the window is focusable.

BaseWindow.visibleOnAllWorkspaces property (macOS and Linux)

win.visibleOnAllWorkspaces is a boolean property (macOS and Linux only) that determines whether the window is visible on all workspaces. Always returns false on Windows.

BaseWindow.shadow property

win.shadow is a boolean property that determines whether the window has a shadow.

BaseWindow.menuBarVisible property (Windows and Linux)

win.menuBarVisible is a boolean property (Windows and Linux only) that determines whether the menu bar should be visible. If the menu bar is auto-hide, users can still bring up the menu bar by pressing the single Alt key.

BaseWindow.kiosk property

win.kiosk is a boolean property that determines whether the window is in kiosk mode.

BaseWindow.documentEdited property (macOS)

win.documentEdited is a boolean property (macOS only) that specifies whether the window's document has been edited. When set to true, the icon in title bar will become gray.

BaseWindow.representedFilename property (macOS)

win.representedFilename is a string property (macOS only) that determines the pathname of the file the window represents, and the icon of the file will show in window's title bar.

BaseWindow.title property

win.title is a string property that determines the title of the native window. Note that the title of the web page can be different from the title of the native window.

BaseWindow.minimizable property (macOS and Windows)

win.minimizable is a boolean property (macOS and Windows only) that determines whether the window can be manually minimized by user. On Linux the setter is a no-op, although the getter returns true.

BaseWindow.maximizable property (macOS and Windows)

win.maximizable is a boolean property (macOS and Windows only) that determines whether the window can be manually maximized by user. On Linux the setter is a no-op, although the getter returns true.

BaseWindow.fullScreenable property

win.fullScreenable is a boolean property that determines whether the maximize/zoom window button toggles fullscreen mode or maximizes the window.

BaseWindow.resizable property

win.resizable is a boolean property that determines whether the window can be manually resized by user.

BaseWindow.closable property (macOS and Windows)

win.closable is a boolean property (macOS and Windows only) that determines whether the window can be manually closed by user. On Linux the setter is a no-op, although the getter returns true.

BaseWindow.movable property (macOS and Windows)

win.movable is a boolean property (macOS and Windows only) that determines whether the window can be moved by user. On Linux the setter is a no-op, although the getter returns true.

BaseWindow.excludedFromShownWindowsMenu property (macOS)

win.excludedFromShownWindowsMenu is a boolean property (macOS only) that determines whether the window is excluded from the application's Windows menu. Default is false.

BaseWindow.accessibleTitle property

win.accessibleTitle is a string property that defines an alternative title provided only to accessibility tools such as screen readers. This string is not directly visible to users.

BaseWindow.snapped property (Windows, readonly)

win.snapped is a readonly boolean property (Windows only) that indicates whether the window is arranged via Snap.

Give your agent this brain