ui.Textbox.setValue
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस विकल्प से, टेक्स्ट बॉक्स की वैल्यू सेट की जाती है.
यह टेक्स्ट बॉक्स दिखाता है.
इस्तेमाल | रिटर्न |
---|
Textbox.setValue(value, trigger) | ui.Textbox |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.textbox | ui.Textbox | ui.Textbox इंस्टेंस. |
value | स्ट्रिंग | टेक्स्ट बॉक्स की वैल्यू. |
trigger | बूलियन, ज़रूरी नहीं | वैल्यू प्रॉपर्टी में बदलाव होने पर, onChange कॉलबैक को ट्रिगर करना है या नहीं. डिफ़ॉल्ट रूप से, यह वैल्यू 'सही' पर सेट होती है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\u003eThe \u003ccode\u003esetValue\u003c/code\u003e method allows you to programmatically set the value of a textbox element within your user interface.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts the new value as a string and an optional boolean to control triggering of onChange event callbacks.\u003c/p\u003e\n"],["\u003cp\u003eAfter setting the value, the method returns the ui.Textbox instance itself for chaining with other methods.\u003c/p\u003e\n"]]],[],null,["# ui.Textbox.setValue\n\n\u003cbr /\u003e\n\nSets the value of the textbox.\n\n\u003cbr /\u003e\n\nReturns this textbox.\n\n| Usage | Returns |\n|----------------------------------------|------------|\n| Textbox.setValue`(value, `*trigger*`)` | ui.Textbox |\n\n| Argument | Type | Details |\n|--------------------|-------------------|------------------------------------------------------------------------------------------|\n| this: `ui.textbox` | ui.Textbox | The ui.Textbox instance. |\n| `value` | String | The value of the textbox. |\n| `trigger` | Boolean, optional | Whether to trigger onChange callbacks when the value property changes. Defaults to true. |"]]