# WidgetConfig

**Kind**: interface | **Module**: [io.Connect Browser](https://docs.interop.io/browser/reference/javascript/io.connect%20browser/index.md)

**Source**: https://docs.interop.io/browser/reference/javascript/io.connect browser/widgetconfig/index.html

Describes the configuration for the io.Connect widget.

## Properties

- **`awaitFactory`** (`boolean`, optional) default: `true`
  If `true`, the `@interopio/browser` library will wait for the `IOBrowserWidget()` factory function to resolve before completing its initialization.
- **`channels`** (`WidgetChannels`, optional)
  Settings for the Channel Selector UI.
- **`displayInWorkspace`** (`boolean`, optional) default: `false`
  If `true`, the widget will be visible in the app even if the app is currently in a Workspace.
- **`enable`** (`boolean`, required)
  If `true`, will enable the widget for the Browser Client unless the app origin has been blocked in the Main app configuration.
- **`position`** (`WidgetPosition`, optional) default: `"bottom-center"`
  Initial position for the widget within the window.
- **`restoreLastKnownPosition`** (`boolean`, optional) default: `true` *(since io.Connect Browser 4.1)*
  If `true`, the widget will save its position in the app's prefs storage and restore it upon app's initialization.
- **`timeout`** (`number`, optional) default: `5000`
  Interval in milliseconds to wait for the `IOBrowserWidget()` factory function to be fetched from the remote source.

## Related types

- [WidgetChannels](https://docs.interop.io/browser/reference/javascript/io.connect%20browser/widgetchannels/index.md)
- [WidgetPosition](https://docs.interop.io/browser/reference/javascript/io.connect%20browser/widgetposition/index.md)
