# Interface: DocumentViewConfig

[Mobile Web Capture API Reference](../index.md) / DocumentViewConfig

# Interface: DocumentViewConfig

Configures the `DocumentView`, where the user builds and manages the pages of one document.

## Remarks

Set this through [MobileWebCaptureConfig.documentViewConfig](MobileWebCaptureConfig.md#documentviewconfig), which exposes the properties below that a consumer can meaningfully set; the rest are wired up by MWC.

## Example

```html
<div id="customizedDocViewContent">Start Your Document!</div>
```

```javascript
const mobileWebCapture = new Dynamsoft.MobileWebCapture({
    license: "YOUR_LICENSE_KEY_HERE",
    documentViewConfig: {
        emptyContentConfig: document.getElementById("customizedDocViewContent"),
    },
});
```

## Properties

### container?

> `optional` **container?**: `HTMLElement`

The container element for this View.

#### Remarks

When omitted, MWC creates one inside [MobileWebCaptureConfig.container](MobileWebCaptureConfig.md#container).

***

### emptyContentConfig?

> `optional` **emptyContentConfig?**: [`EmptyContentConfig`](../type-aliases/EmptyContentConfig.md)

What the View displays while the document holds no pages.

***

### toolbarButtonsConfig?

> `optional` **toolbarButtonsConfig?**: [`DocumentToolbarButtonsConfig`](DocumentToolbarButtonsConfig.md)

Overrides the icon, label, or visibility of the `DocumentView` toolbar buttons.
