Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Button.setImageUrl
Stay organized with collections
Save and categorize content based on your preferences.
Shows the button as image, which will render instead of the label text.
Returns this button.
Usage | Returns | Button.setImageUrl(imageUrl) | ui.Button |
Argument | Type | Details | this: ui.button | ui.Button | The ui.Button instance. |
imageUrl | String | The url of the image. |
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\u003esetImageUrl()\u003c/code\u003e customizes a UI button by displaying an image instead of text.\u003c/p\u003e\n"],["\u003cp\u003eThis method accepts an image URL as input and applies it to the specified button.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this functionality to enhance UI elements with visual representations.\u003c/p\u003e\n"],["\u003cp\u003eThe method returns the modified \u003ccode\u003eui.Button\u003c/code\u003e instance for further manipulation.\u003c/p\u003e\n"]]],[],null,["# ui.Button.setImageUrl\n\n\u003cbr /\u003e\n\nShows the button as image, which will render instead of the label text.\n\n\u003cbr /\u003e\n\nReturns this button.\n\n| Usage | Returns |\n|--------------------------------|-----------|\n| Button.setImageUrl`(imageUrl)` | ui.Button |\n\n| Argument | Type | Details |\n|-------------------|-----------|-------------------------|\n| this: `ui.button` | ui.Button | The ui.Button instance. |\n| `imageUrl` | String | The url of the image. |"]]