Optional
apiConfigurations for API injection.
Optional
autoOptional
backgroundThe view’s backfill color as a hexadecimal value. Not to be confused with the content background color
(document.body.style.backgroundColor
),
this color briefly fills a view’s (a) content area before its content is loaded as well as (b) newly exposed
areas when growing a view. Setting
this value to the anticipated content background color can help improve user experience.
Default is white.
Optional
contentRestrict navigation to URLs that match an allowed pattern. In the lack of an allowlist, navigation to URLs that match a denylisted pattern would be prohibited. See here for more details.
Optional
contentOptional
contextSuperseded by contextMenuOptions, which offers a larger feature-set and cleaner syntax.
true
Show the context menu when right-clicking on the view.
Gives access to the devtools for the view.
Optional
contextConfigure the context menu when right-clicking on a window.
Optional
contextSuperseded by contextMenuOptions, which offers a larger feature-set and cleaner syntax.
Configure the context menu when right-clicking on a window.
Optional
customA field that the user can use to attach serializable data that will be saved when Platform.getSnapshot is called. If a window in a Platform is trying to update or retrieve its own context, it can use the Platform.setWindowContext and Platform.getWindowContext calls. When omitted, inherits from the parent application. As opposed to customData, this is meant for frequent updates and sharing with other contexts. For usage example, see customContext Example.
Optional
customA field that the user can attach serializable data to be ferried around with the window options. When omitted, inherits from the parent application.
Optional
detachOptional
interopOptional
isOptional
preventOptional
throttlingView throttling state.
enabled
: Both background throttling and scheduler throttling are true. It's fully throttled.scheduler-disabled
: background throttling is true, but scheduler throttling is disabled.
View options that can be updated after creation.