סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > סרגל גלילה > (constructor)
יוצרת מופע חדש של המחלקה Scrollbar
Signature:
constructor(workspace: WorkspaceSvg, horizontal: boolean, opt_pair?: boolean, opt_class?: string, opt_margin?: number);
פרמטרים
פרמטר |
סוג |
תיאור |
סביבת עבודה |
WorkspaceSvg |
סביבת העבודה שאליה רוצים לקשר את סרגל הגלילה. |
אופקי |
בוליאני |
הערך הוא True אם הוא אופקי, FALSE אם הוא אנכי. |
opt_pair |
בוליאני |
(אופציונלי) הערך הוא True אם סרגל הגלילה הוא חלק מזוג אופק/המרה. |
opt_class |
מחרוזת |
(אופציונלי) כיתה שתחול על סרגל הגלילה הזה. |
opt_margin |
number |
(אופציונלי) השוליים שיחולו על סרגל הגלילה הזה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-10 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-10 (שעון UTC)."],[[["`Scrollbar` class constructor initializes a new scrollbar object within a specified workspace."],["It allows customization of orientation (horizontal or vertical), pairing with another scrollbar, styling through custom classes, and margin adjustments."],["The constructor requires a `WorkspaceSvg` object and a boolean indicating horizontal or vertical orientation, with optional parameters for pairing, styling, and margin."]]],[]]