# Method DocsView.setParent

Sets the initial parent folder to display.

Don't combine this setting with `setEnableDrives` or `setFileIds`. Calls to
this function override previous calls to `setEnableDrives` or `setFileIds`.

## Signature

    setParent(parentId: string): View;

## Details

| Optional | No |
| Final | No |
| Protected | No |
| Static | No |
|---|---|

## Parameters

| Name | Type | Optional | Description |
|---|---|---|---|
| `parentId` | `string` | No |   |

## Returns

`https://developers.google.com/workspace/drive/picker/reference/picker.view`