ui.Checkbox.setLabel
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Legt das Label des Kästchens fest.
Gibt dieses Kästchen zurück.
Nutzung | Ausgabe |
---|
Checkbox.setLabel(value) | ui.Checkbox |
Argument | Typ | Details |
---|
So gehts: ui.checkbox | ui.Checkbox | Die ui.Checkbox-Instanz. |
value | String | Das neue Label für das Kästchen. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\u003cp\u003e\u003ccode\u003eCheckbox.setLabel()\u003c/code\u003e allows you to set the label displayed next to a checkbox.\u003c/p\u003e\n"],["\u003cp\u003eThis method accepts the new label as a string argument and applies it to the specified \u003ccode\u003eui.Checkbox\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eUsing \u003ccode\u003eCheckbox.setLabel()\u003c/code\u003e returns the \u003ccode\u003eui.Checkbox\u003c/code\u003e instance, enabling method chaining.\u003c/p\u003e\n"]]],[],null,["# ui.Checkbox.setLabel\n\n\u003cbr /\u003e\n\nSets the checkbox's label.\n\n\u003cbr /\u003e\n\nReturns this checkbox.\n\n| Usage | Returns |\n|----------------------------|-------------|\n| Checkbox.setLabel`(value)` | ui.Checkbox |\n\n| Argument | Type | Details |\n|---------------------|-------------|---------------------------------|\n| this: `ui.checkbox` | ui.Checkbox | The ui.Checkbox instance. |\n| `value` | String | The new label for the checkbox. |"]]