# Constructor DocsView.(constructor)

Constructs a new instance of the `DocsView` class

## Signature

    constructor(viewId?: ViewId);

## Details

| Protected | No |
|---|---|

## Parameters

| Name | Type | Optional | Description |
|---|---|---|---|
| `viewId` | `https://developers.google.com/workspace/drive/picker/reference/picker.viewid` | Yes | The `ViewId` must be one of the Google Drive views. Default is `ViewId.DOCS`. |