Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Chọn chế độ mà thành phần hiển thị sẽ sử dụng để hiển thị tài liệu.
Nếu sử dụng phạm vi khác với https://www.googleapis.com/auth/drive hoặc https://www.googleapis.com/auth/drive.readonly, bạn nên sử dụng DocsViewMode.LIST vì người dùng chưa cấp quyền truy cập vào hình thu nhỏ.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-25 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)"]]