ui.Slider.setValue
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מגדירים את הערך של פס ההזזה.
מחזירה את פס ההזזה הזה.
שימוש | החזרות |
---|
Slider.setValue(value, trigger) | ui.Slider |
ארגומנט | סוג | פרטים |
---|
זה: ui.slider | ui.Slider | מופע ui.Slider. |
value | מספר | הערך של פס ההזזה. |
trigger | בוליאני, אופציונלי | האם להפעיל קריאות חוזרות (callback) של onChange כשמאפיין הערך משתנה. ברירת המחדל היא True. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eThe \u003ccode\u003esetValue\u003c/code\u003e method allows you to programmatically set the value of a \u003ccode\u003eui.Slider\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts the desired \u003ccode\u003evalue\u003c/code\u003e as a number and an optional \u003ccode\u003etrigger\u003c/code\u003e boolean to control onChange callback execution.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003esetValue\u003c/code\u003e returns the \u003ccode\u003eui.Slider\u003c/code\u003e instance itself, enabling method chaining.\u003c/p\u003e\n"]]],[],null,["# ui.Slider.setValue\n\n\u003cbr /\u003e\n\nSet the value of the slider.\n\n\u003cbr /\u003e\n\nReturns this slider.\n\n| Usage | Returns |\n|---------------------------------------|-----------|\n| Slider.setValue`(value, `*trigger*`)` | ui.Slider |\n\n| Argument | Type | Details |\n|-------------------|-------------------|------------------------------------------------------------------------------------------|\n| this: `ui.slider` | ui.Slider | The ui.Slider instance. |\n| `value` | Number | The value to slider. |\n| `trigger` | Boolean, optional | Whether to trigger onChange callbacks when the value property changes. Defaults to true. |"]]