TextBox
Text box is an input element for capturing large amounts of text. Learn more.
Additional information about this section
Store values associated with an object
- style
Gets an object containing information about the text box's styles.
- value
Sets or gets a text input's value.
- wrap
Determines if the text contains line breaks when its value is read.
- label
Sets or gets the label of an element.
- customClassList
A property that represents an element's custom CSS classes.
- deleted
Indicates if an element was temporarily deleted from the DOM. Use the restore function to restore the deleted element.
- rendered
Indicates if an element is currently in the DOM structure.
- global
Indicates if an element appears on all pages or only on the current page.
- id
Gets the element's ID.
- parent
Gets the element's parent element.
- type
Gets the element's type.
- valid
Indicates if an input element's value is valid.
- validationMessage
Gets a message indicating why the element is invalid, or an empty string if the message is valid.
- validity
Gets a ValidityState object that contains detailed information about the validity states of the element.
- enabled
Indicates if the element is enabled or disabled.
- maxLength
Sets or gets the maximum number of characters that can be entered.
- placeholder
Sets or gets the element's placeholder text.
- hidden
Indicates if the element is visible or hidden.
- isVisible
Indicates if the element is actually visible.
- collapsed
Indicates if the element is collapsed or expanded.
- readOnly
Sets or gets if a user can modify the value of the input element.
- required
Sets or gets whether an input element is required to have a value.
The endpoints exposed by this API
Adds an event handler that runs when the element's validation is checked.
Deletes an element from the DOM. This is a temporary deletion. Use restore to restore the deleted element. SEO crawlers cannot find content in an element whose ...
Adds an event handler that runs when the pointer is moved onto the element. You can also define an event handler using the Properties and Events panel.
Adds an event handler that runs when the pointer is moved off of the element. You can also define an event handler using the Properties and Events panel.
Restores a deleted element to the DOM.
Scrolls the page to the top of the element using an animation.
Adds an event handler that runs when an element is displayed in the viewable part of the current window.
Adds an event handler that runs when an element is no longer displayed in the viewable part of the current window.
Resets the element's visual validity indication.
Updates the element's visual validity indication based on its current validity state.
Adds an event handler that runs when an input element's value is changed.
Disables the element and sets its enabled property to false.
Enables the element and sets its enabled property to true.
Adds an event handler that runs when the input element receives input.
Adds an event handler that runs when the cursor is inside the input element and a key is pressed.
Hides the element and sets its hidden property to true, using an effect if specified.
Shows the element and sets its hidden property to false, using an effect if specified.
Collapses the element and sets its collapsed property to true.
Expands the element and sets its collapsed property to false.
Removes focus from the element.
Places focus on the element.
Adds an event handler that runs when the element loses focus.
Adds an event handler that runs when the element receives focus.
Adds an event handler that runs when the element is clicked.
Adds an event handler that runs when the element is double-clicked.