ui.DateSlider.onChange
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह एक कॉलबैक रजिस्टर करता है. यह कॉलबैक तब ट्रिगर होता है, जब स्लाइडर की वैल्यू बदलती है.
यह एक ऐसा आईडी दिखाता है जिसे unlisten() को पास किया जा सकता है, ताकि कॉलबैक को अनरजिस्टर किया जा सके.
इस्तेमाल | रिटर्न |
---|
DateSlider.onChange(callback) | स्ट्रिंग |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.dateslider | ui.DateSlider | ui.DateSlider इंस्टेंस. |
callback | फ़ंक्शन | स्लाइडर की स्थिति बदलने पर, इस कॉलबैक को ट्रिगर किया जाता है. कॉलबैक को ee.DateRange पास किया जाता है. यह स्लाइडर की मौजूदा वैल्यू और स्लाइडर विजेट को दिखाता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eonChange\u003c/code\u003e registers a callback function that is triggered when the DateSlider's value changes.\u003c/p\u003e\n"],["\u003cp\u003eThe callback function receives the current date range (as an \u003ccode\u003eee.DateRange\u003c/code\u003e) and the DateSlider widget itself as arguments.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003eonChange\u003c/code\u003e returns a unique ID that can be used with \u003ccode\u003eunlisten()\u003c/code\u003e to remove the callback.\u003c/p\u003e\n"]]],[],null,["# ui.DateSlider.onChange\n\n\u003cbr /\u003e\n\nRegisters a callback that's fired when the slider's value changes.\n\n\u003cbr /\u003e\n\nReturns an ID which can be passed to unlisten() to unregister the callback.\n\n| Usage | Returns |\n|---------------------------------|---------|\n| DateSlider.onChange`(callback)` | String |\n\n| Argument | Type | Details |\n|-----------------------|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `ui.dateslider` | ui.DateSlider | The ui.DateSlider instance. |\n| `callback` | Function | The callback to fire when the slider's state changes. The callback is passed an ee.DateRange representing the slider's current value and the slider widget. |"]]