# Class ViewGroup

A `ViewGroup` is a visual grouping of views in the navigation pane.

## Signature

    export class ViewGroup

## Details

| Final | No |
|---|---|

## Constructors

| Name | Description |
|---|---|
| [`(constructor)(viewOrId)`](https://developers.google.com/workspace/drive/picker/reference/picker.viewgroup._constructor_) | Constructs a new instance of the `ViewGroup` class |

## Methods

| Name | Description |
|---|---|
| [`addLabel(label)`](https://developers.google.com/workspace/drive/picker/reference/picker.viewgroup.addlabel) | Add a label to this `ViewGroup`. |
| [`addView(viewOrId)`](https://developers.google.com/workspace/drive/picker/reference/picker.viewgroup.addview) | Add a view to the `ViewGroup`. The view can be represented by a view-derived object, or simply by `ViewId`. |
| [`addViewGroup(viewGroup)`](https://developers.google.com/workspace/drive/picker/reference/picker.viewgroup.addviewgroup) | Nest a `ViewGroup` within the current `ViewGroup`. |