Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Textbox.setDisabled
Stay organized with collections
Save and categorize content based on your preferences.
Sets whether the textbox is disabled.
Returns this textbox.
Usage | Returns | Textbox.setDisabled(disabled) | ui.Textbox |
Argument | Type | Details | this: ui.textbox | ui.Textbox | The ui.Textbox instance. |
disabled | Boolean | Whether the textbox is disabled. |
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\u003eThe \u003ccode\u003esetDisabled\u003c/code\u003e function allows you to enable or disable a textbox element within a user interface.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003esetDisabled\u003c/code\u003e on a ui.Textbox object returns the ui.Textbox instance itself, enabling method chaining.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edisabled\u003c/code\u003e is a boolean argument that determines the enabled/disabled state of the textbox.\u003c/p\u003e\n"]]],[],null,["# ui.Textbox.setDisabled\n\n\u003cbr /\u003e\n\nSets whether the textbox is disabled.\n\n\u003cbr /\u003e\n\nReturns this textbox.\n\n| Usage | Returns |\n|---------------------------------|------------|\n| Textbox.setDisabled`(disabled)` | ui.Textbox |\n\n| Argument | Type | Details |\n|--------------------|------------|----------------------------------|\n| this: `ui.textbox` | ui.Textbox | The ui.Textbox instance. |\n| `disabled` | Boolean | Whether the textbox is disabled. |"]]