ui.Button.setLabel
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
बटन का लेबल सेट करता है.
यह बटन दिखाता है.
इस्तेमाल | रिटर्न |
---|
Button.setLabel(label) | ui.Button |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.button | ui.Button | ui.Button इंस्टेंस. |
label | स्ट्रिंग | बटन का लेबल. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\u003esetLabel()\u003c/code\u003e lets you customize the text displayed on a button.\u003c/p\u003e\n"],["\u003cp\u003eThis method updates the button's label and returns the \u003ccode\u003eui.Button\u003c/code\u003e instance, allowing for method chaining.\u003c/p\u003e\n"]]],[],null,["# ui.Button.setLabel\n\n\u003cbr /\u003e\n\nSets the button's label.\n\n\u003cbr /\u003e\n\nReturns this button.\n\n| Usage | Returns |\n|--------------------------|-----------|\n| Button.setLabel`(label)` | ui.Button |\n\n| Argument | Type | Details |\n|-------------------|-----------|-------------------------|\n| this: `ui.button` | ui.Button | The ui.Button instance. |\n| `label` | String | The button's label. |"]]