إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ui.Slider.onSlide
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تسجِّل هذه السمة دالة ردّ يتم تشغيلها عند تغيير حالة شريط التمرير. سيتم استدعاء دالة الرجوع بشكل متكرر أثناء سحب المستخدم لشريط التمرير.
تعرض هذه الطريقة رقم تعريف يمكن تمريره إلى unlisten() لإلغاء تسجيل وظيفة معاودة الاتصال.
الاستخدام | المرتجعات |
---|
Slider.onSlide(callback) | سلسلة |
الوسيطة | النوع | التفاصيل |
---|
هذا: ui.slider | ui.Slider | مثيل ui.Slider |
callback | الوظيفة | دالة رد الاتصال التي سيتم تشغيلها عند تغيير حالة شريط التمرير. يتم تمرير القيمة الحالية لشريط التمرير إلى دالة رد الاتصال. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003e\u003ccode\u003eSlider.onSlide\u003c/code\u003e registers a callback function that is triggered repeatedly as the user interacts with the slider, providing real-time updates on the slider's value.\u003c/p\u003e\n"],["\u003cp\u003eThis function returns a unique ID that can be used with \u003ccode\u003eunlisten()\u003c/code\u003e to remove the registered callback when it's no longer needed.\u003c/p\u003e\n"],["\u003cp\u003eThe callback function receives the current value of the slider as an argument, allowing you to perform actions based on the slider's state.\u003c/p\u003e\n"]]],["Registers a callback function triggered by slider state changes, particularly during user dragging. The `onSlide` method accepts a callback function as an argument, which receives the slider's current value. It returns a unique ID used to unregister the callback later with `unlisten()`. The method is used on a `ui.Slider` instance and allows repeated invocation of the callback while the slider state changes.\n"],null,["# ui.Slider.onSlide\n\n\u003cbr /\u003e\n\nRegisters a callback that's fired when the slider's state changes. The callback will be invoked repeatedly while the user is dragging the slider.\n\n\u003cbr /\u003e\n\nReturns an ID which can be passed to unlisten() to unregister the callback.\n\n| Usage | Returns |\n|----------------------------|---------|\n| Slider.onSlide`(callback)` | String |\n\n| Argument | Type | Details |\n|-------------------|-----------|----------------------------------------------------------------------------------------------------------|\n| this: `ui.slider` | ui.Slider | The ui.Slider instance. |\n| `callback` | Function | The callback to fire when the slider's state changes. The callback is passed the slider's current value. |"]]