Textbox
Represents a textbox element with optional label, hint and validation messages.
#
PropertiesName | Type | Default | Description |
---|---|---|---|
value | string | Current value of the textbox. | |
label | string | Label to display above the textbox. | |
placeholder | string | The short hint displayed in the textbox before the user enters a value. | |
errorMessage | string | Static error message displayed below the textbox. | |
description | string | Description displayed below the textbox to provide additional details about what text to enter. | |
multiline | bool | false | Whether or not the text field is a multiline text field. |
align | string | left | Text alignment within textbox: left or right . |
password | bool | false | Whether the textbox is a masked field for entering password. |
onChange | bool | false | Whether change event should be fired while text is typed into the Textbox. |
#
EventsName | Description |
---|---|
change | Fires when the typed input for the Textbox has changed. For performance optimization this event is disabled unless onChange property set to true . |
#
Examples- Python
- Bash
- PowerShell
- Node.js
Adding a new textbox control onto the page:
Retrieving the value entered into textbox:
Add multiline textbox and then output a couple of lines into it: