ui.Textbox.setValue
Sets the value of the textbox.
Returns this textbox.
Usage | Returns |
---|
Textbox.setValue(value, trigger) | ui.Textbox |
Argument | Type | Details |
---|
this: ui.textbox | ui.Textbox | The ui.Textbox instance. |
value | String | The value of the textbox. |
trigger | Boolean, optional | Whether to trigger onChange callbacks when the value property changes. Defaults to true. |
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."],[[["The `setValue` method allows you to programmatically set the value of a textbox element within your user interface."],["It accepts the new value as a string and an optional boolean to control triggering of onChange event callbacks."],["After setting the value, the method returns the ui.Textbox instance itself for chaining with other methods."]]],[]]