ui.Button.getLabel
Returns the button's label.
Usage | Returns |
---|
Button.getLabel() | String |
Argument | Type | Details |
---|
this: ui.button | ui.Button | The ui.Button instance. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["`Button.getLabel()` can be used to retrieve the label of a button element."],["This method takes one argument, the `ui.Button` instance and returns the label as a string."]]],["The `Button.getLabel()` method retrieves the label of a button. It requires a `ui.Button` instance as input, referred to as `this: ui.button`. The method returns a String value, representing the button's text label. No arguments are provided other than the implicit button instance.\n"]]