ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
ui.Slider.onSlide
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি কলব্যাক নিবন্ধন করে যা স্লাইডারের অবস্থা পরিবর্তিত হলে বহিস্কার করা হয়। ব্যবহারকারী যখন স্লাইডারটি টেনে নিয়ে যাচ্ছেন তখন কলব্যাক বারবার আহ্বান করা হবে।
একটি আইডি ফেরত দেয় যা কলব্যাক নিবন্ধনমুক্ত করতে unlisten() এ পাস করা যেতে পারে।
ব্যবহার | রিটার্নস | Slider. onSlide (callback) | স্ট্রিং |
যুক্তি | টাইপ | বিস্তারিত | এই: ui.slider | ui.স্লাইডার | ui.Slider উদাহরণ। |
callback | ফাংশন | স্লাইডারের অবস্থা পরিবর্তিত হলে কলব্যাক ফায়ার। কলব্যাকটি স্লাইডারের বর্তমান মান অতিক্রম করে। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\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. |"]]