# Type Alias: EmptyContentConfig

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

# Type Alias: EmptyContentConfig

> **EmptyContentConfig** = `string` \| `HTMLElement` \| `HTMLTemplateElement` \| \{ `templatePath`: `string`; \}

The content a View displays while it is empty — no documents in the [LibraryView](../classes/LibraryView.md), no pages in the [DocumentView](../classes/DocumentView.md), no uploads in the `HistoryView`.

## Union Members

`string`

***

`HTMLElement`

***

`HTMLTemplateElement`

***

### Type Literal

\{ `templatePath`: `string`; \}

#### templatePath

> **templatePath**: `string`

Path to an HTML template file to fetch and use as the empty-state content.

## Remarks

Supply an HTML string, an existing element, a `<template>` element, or the path to an HTML template file to fetch. Each View ships a sensible default, so this only needs setting to replace it.

## Example

```html
<div id="customizedLibraryViewContent">Create Your First Document!</div>
```

```javascript
const mobileWebCapture = new Dynamsoft.MobileWebCapture({
    license: "YOUR_LICENSE_KEY_HERE",
    showLibraryView: true,
    libraryViewConfig: {
        emptyContentConfig: document.getElementById("customizedLibraryViewContent"),
    },
});
```
