סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > סרגל גלילה > הגדרה
מגדירים את המיקום של נקודת האחיזה בסרגל הגלילה.
Signature:
set(value: number, updateMetrics?: boolean): void;
פרמטרים
פרמטר |
סוג |
תיאור |
ערך |
number |
העברת התוכן, ביחס לתצוגה בפיקסלים. |
updateMetrics |
בוליאני |
(אופציונלי) האם לעדכן מדדים בבקשה הקבועה הזו. ברירת המחדל היא True. |
החזרות:
ריק
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-12 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-12 (שעון UTC)."],[[["The `Scrollbar.set()` method positions the scrollbar handle based on content displacement."],["It accepts a numeric `value` representing the content's pixel displacement relative to the view and an optional boolean `updateMetrics` to control metric updates, defaulting to true."],["Calling `Scrollbar.set()` does not return any value."]]],["The `Scrollbar.set()` method positions the scrollbar handle. It accepts two parameters: `value`, a numerical representation of the content's displacement in pixels, and an optional boolean `updateMetrics`, which defaults to true and determines if metrics should be updated. The method returns no value (`void`). The `value` parameter is required to indicate the new handle position.\n"]]