Appearance
Mobile Web Capture API Reference / DocumentViewConfig
Interface: DocumentViewConfig
Configures the DocumentView, where the user builds and manages the pages of one document.
Remarks
Set this through MobileWebCaptureConfig.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?
optionalcontainer?:HTMLElement
The container element for this View.
Remarks
When omitted, MWC creates one inside MobileWebCaptureConfig.container.
emptyContentConfig?
optionalemptyContentConfig?:EmptyContentConfig
What the View displays while the document holds no pages.
toolbarButtonsConfig?
optionaltoolbarButtonsConfig?:DocumentToolbarButtonsConfig
Overrides the icon, label, or visibility of the DocumentView toolbar buttons.