השיטה DocsView.set לשיתוף
סינון המסמכים לפי האפשרות שהמשתמש סימן אותם בכוכב.
אם הערך שלו הוא true
, יוצגו בתצוגה רק מסמכים שמסומנים בכוכב. אם הערך הוא false
, כל המסמכים יוצגו בתצוגה.
חתימה
setStarred(starred: boolean): DocsView;
פרטים
אופציונלי |
לא |
גמר |
לא |
מוגן |
לא |
סטטי |
לא |
פרמטרים
שם |
סוג |
אופציונלי |
תיאור |
starred |
boolean |
לא |
|
החזרות
DocsView
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-08 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-08 (שעון 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"]]