ui.Slider.setMax
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הגדרת הערך המקסימלי של המחוון.
מחזירה את פס ההזזה הזה.
שימוש | החזרות |
---|
Slider.setMax(value) | ui.Slider |
ארגומנט | סוג | פרטים |
---|
זה: ui.slider | ui.Slider | מופע ui.Slider. |
value | מספר | הערך המקסימלי של פס ההזזה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003e\u003ccode\u003eSlider.setMax()\u003c/code\u003e sets the maximum value that the slider can reach.\u003c/p\u003e\n"],["\u003cp\u003eThe method takes a single argument, \u003ccode\u003evalue\u003c/code\u003e, which is a number representing the desired maximum.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003eSlider.setMax()\u003c/code\u003e returns the \u003ccode\u003eui.Slider\u003c/code\u003e instance, allowing for method chaining.\u003c/p\u003e\n"]]],[],null,["# ui.Slider.setMax\n\n\u003cbr /\u003e\n\nSets the maximum value of the slider.\n\n\u003cbr /\u003e\n\nReturns this slider.\n\n| Usage | Returns |\n|------------------------|-----------|\n| Slider.setMax`(value)` | ui.Slider |\n\n| Argument | Type | Details |\n|-------------------|-----------|-----------------------------|\n| this: `ui.slider` | ui.Slider | The ui.Slider instance. |\n| `value` | Number | The slider's maximum value. |"]]