ui.Textbox.setPlaceholder
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह टेक्स्टबॉक्स के प्लेसहोल्डर टेक्स्ट को सेट करता है. यह टेक्स्ट तब दिखता है, जब कोई टेक्स्ट नहीं डाला जाता.
यह फ़ंक्शन, चुने गए हिस्से को दिखाता है.
इस्तेमाल | रिटर्न |
---|
Textbox.setPlaceholder(placeholder) | ui.Textbox |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.textbox | ui.Textbox | ui.Textbox इंस्टेंस. |
placeholder | स्ट्रिंग | select का प्लेसहोल्डर टेक्स्ट. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\u003esetPlaceholder\u003c/code\u003e method allows you to set the text that appears in a textbox when it's empty, guiding users on what to input.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003esetPlaceholder\u003c/code\u003e on a \u003ccode\u003eui.Textbox\u003c/code\u003e object will update the placeholder text and return the \u003ccode\u003eui.Textbox\u003c/code\u003e instance itself, enabling method chaining.\u003c/p\u003e\n"]]],[],null,["# ui.Textbox.setPlaceholder\n\n\u003cbr /\u003e\n\nSets the textbox's placeholder text, which is shown when no text is entered.\n\n\u003cbr /\u003e\n\nReturns this select.\n\n| Usage | Returns |\n|---------------------------------------|------------|\n| Textbox.setPlaceholder`(placeholder)` | ui.Textbox |\n\n| Argument | Type | Details |\n|--------------------|------------|--------------------------------|\n| this: `ui.textbox` | ui.Textbox | The ui.Textbox instance. |\n| `placeholder` | String | The select's placeholder text. |"]]