Method DocsView.setStarred
Filters the documents based on whether they are starred by the user.
If true
, only starred documents are displayed in the view. If false
, all
documents are displayed in the view.
Signature
setStarred(starred: boolean): DocsView;
Details
Optional |
No |
Final |
No |
Protected |
No |
Static |
No |
Parameters
Name |
Type |
Optional |
Description |
starred |
boolean |
No |
|
Returns
DocsView
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-05 UTC.
[null,null,["Last updated 2024-11-05 UTC."],[[["The `setStarred` method filters displayed documents based on whether they are starred by the user."],["If `starred` is true, only starred documents are shown; otherwise, all documents are displayed."],["This method returns a `DocsView` object for further interaction."]]],["The `setStarred` function filters documents displayed in a `DocsView`. It accepts a boolean parameter, `starred`. When `starred` is `true`, only documents marked as starred by the user are shown. If `false`, all documents are shown. This function is not optional, final, protected, or static. It returns a `DocsView` object, allowing for further operations on the document view.\n"]]