MRTextAreaEntity
MRTextInputEntity
MRTextAreaEntity ⇐ The text area element that simulates the behavior of an HTML
Kind: global class
Extends: MRTextInputEntity
- MRTextAreaEntity ⇐
MRTextInputEntity
mrTextAreaEntity.MRTextAreaEntity
Kind: instance class of MRTextAreaEntity
new exports.MRTextAreaEntity()
Constructor for the MRTextInputEntity entity component.
mrTextAreaEntity.createHiddenInputElement()
Called by connected to make sure the hiddenInput dom element is created as expected.
Kind: instance method of MRTextAreaEntity
mrTextAreaEntity.fillInHiddenInputElementWithUserData()
Called by connected after createHiddenInputElement to fill it in with the user’s given attribute information.
Kind: instance method of MRTextAreaEntity
boolean
mrTextAreaEntity.hasTextSubsetForVerticalScrolling() ⇒ Getter for whether this textinput should handle vertical scrolling or not.
Kind: instance method of MRTextAreaEntity
Returns: boolean
- true if it should be handled, false otherwise
boolean
mrTextAreaEntity.hasTextSubsetForHorizontalScrolling() ⇒ Getter for whether this textinput should handle horizontal scrolling or not.
Kind: instance method of MRTextAreaEntity
Returns: boolean
- true if it should be handled, false otherwise
mrTextAreaEntity.updateTextDisplay(fromCursorMove)
Used on event trigger to update the textObj visual based on the hiddenInput DOM element.
Kind: instance method of MRTextAreaEntity
Param | Type | Default | Description |
---|---|---|---|
fromCursorMove | boolean |
false |
default set as false if not supplied. Used because we only want to move the visible region if it is not already handled. Since cursor movement already handles that region change, then we only need to update the new text. Otherwise, we also need to scroll and update the new text. |
mrTextAreaEntity.handleKeydown(event)
Called by the keydown event trigger. Handles the arrow key movements.
Kind: instance method of MRTextAreaEntity
Param | Type | Description |
---|---|---|
event | event |
the keydown event |