Stay organized with collections
Save and categorize content based on your preferences.
Selects which mode the view will use to display the documents.
If using a scope other than https://www.googleapis.com/auth/drive or
https://www.googleapis.com/auth/drive.readonly, it is recommended to use
DocsViewMode.LIST as the user has not granted access to thumbnails.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-20 UTC."],[],[],null,["# Method DocsView.setMode\n\nSelects which mode the view will use to display the documents.\n\nIf using a scope other than `https://www.googleapis.com/auth/drive` or\n`https://www.googleapis.com/auth/drive.readonly`, it is recommended to use\n`DocsViewMode.LIST` as the user has not granted access to thumbnails.\n\nSignature\n---------\n\n setMode(mode: DocsViewMode): DocsView;\n\nDetails\n-------\n\n| Optional | No |\n| Final | No |\n| Protected | No |\n| Static | No |\n|-----------|----|\n\nParameters\n----------\n\n| Name | Type | Optional | Description |\n|--------|---------------------------------------|----------|-------------|\n| `mode` | [DocsViewMode](./picker.docsviewmode) | No | |\n\nReturns\n-------\n\n[DocsView](./picker.docsview)"]]