Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Edge HMI

WebView2 for custom widgets

  • Last UpdatedOct 22, 2026
  • 1 minute read

The runtime reads the following keys each time a custom widget initializes. Developer tools and context menus are off by default in the Release build.

Key

Type

Default

Description

EnableDevTools

Integer

0

Set to 1 to enable the browser developer tools in custom widget windows (for example F12). For development and troubleshooting only. Disable it in production.

EnableContextMenus

Integer

0

Set to 1 to allow the default right-click context menus in custom widget windows.

EnableGPUAccelerator

Integer

1

Controls GPU hardware acceleration for custom widget rendering. Set to 0 to disable it.

LogLevel

Integer

0

Log verbosity for custom widgets. 0 = Error, 1 = Warning, 2 = Info, 3 = Debug, 4 = Trace.

Each custom widget writes its messages to the Console of the browser developer tools. To see them, set EnableDevTools to 1 and open the developer tools in the widget window (for example, press F12).

Example

[WebView2]

EnableDevTools=0

EnableContextMenus=0

EnableGPUAccelerator=1

LogLevel=0

Related Links