Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Button.getLabel
Stay organized with collections
Save and categorize content based on your preferences.
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."],[[["\u003cp\u003e\u003ccode\u003eButton.getLabel()\u003c/code\u003e can be used to retrieve the label of a button element.\u003c/p\u003e\n"],["\u003cp\u003eThis method takes one argument, the \u003ccode\u003eui.Button\u003c/code\u003e instance and returns the label as a string.\u003c/p\u003e\n"]]],["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"],null,["# ui.Button.getLabel\n\n\u003cbr /\u003e\n\nReturns the button's label.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------|---------|\n| Button.getLabel`()` | String |\n\n| Argument | Type | Details |\n|-------------------|-----------|-------------------------|\n| this: `ui.button` | ui.Button | The ui.Button instance. |"]]