---
layout: default-layout
needAutoGenerateSidebar: true
needGenerateH3Content: true
noTitleIndex: true
title: Dynamsoft Document Viewer API Reference - Interface EditViewerConstructorOptions
keywords: Documentation, Dynamsoft Document Viewer, API Reference, Interface EditViewerConstructorOptions
breadcrumbText: Interface EditViewerConstructorOptions
description: Dynamsoft Document Viewer Documentation API Reference Interface EditViewerConstructorOptions Page
permalink: /api/interface/editviewerconstructoroptions.html
---

# EditViewerConstructorOptions

## Syntax

```typescript
interface EditViewerConstructorOptions {
    container?: string | HTMLElement;
    viewerConfig?: EditViewerConfig;
    uiConfig?: UiConfig;
    thumbnailConfig?: ThumbnailConfig;
    annotationConfig?: AnnotationConfig;
    keyboardInteractionConfig?: KeyboardInteractionConfig;
    groupUid?: string;
}
```

## Attributes

### container

The container which is used to show the viewer. Its `id` or `HTMLElement` is acceppted.

### viewerConfig

The configurations of viewer, please refer to [`EditViewerConfig`](https://www.dynamsoft.com/document-viewer/docs/api/interface/editviewerconfig.md). If it is not specified, the [default configuration](https://www.dynamsoft.com/document-viewer/docs/viewer/viewerconfig.md#editviewerconfig) will be applied.

### uiConfig

The UI layout configurations of viewer, please refer to [`UiConfig`](https://www.dynamsoft.com/document-viewer/docs/api/interface/uiconfig.md). If it is not specified, the [default UI](https://www.dynamsoft.com/document-viewer/docs/ui/default_ui.md#edit-viewer) will be applied.

### thumbnailConfig

The configurations of integrated thumbnail, please refer to [`ThumbnailConfig`](https://www.dynamsoft.com/document-viewer/docs/api/interface/thumbnailconfig.md). If it is not specified, the [default configuration](https://www.dynamsoft.com/document-viewer/docs/viewer/viewerconfig.md#thumbnailconfig) will be applied.

### annotationConfig

The configurations of annotation part in the viewer, please refer to [`AnnotationConfig`](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationconfig.md). If it is not specified, the [default configuration](https://www.dynamsoft.com/document-viewer/docs/viewer/viewerconfig.md#annotationconfig) will be applied.

### keyboardInteractionConfig

This configures the use of keyboard shortcuts for the viewer - please see [`KeyboardInteractionConfig`](https://www.dynamsoft.com/document-viewer/docs/api/interface/keyboardinteractionconfig.md) for details. If not specified, all keyboard shortcuts are disabled by default.

### groupUid

The uid of viewers' group. If it is not specified, a random groupUid will be generated.



## Related

- [`EditViewer()`](https://www.dynamsoft.com/document-viewer/docs/api/class/editviewer.md#editviewer)
