[ type ] CaretEvent
Description:
Caret event received by the onCaretEvents() handler callback.
Type: Object
Properties:
| Name | Type | Description |
|---|---|---|
|
object | The component that triggered the event. |
|
string | Always |
|
number | The new caret position. |
|
number | Start position of selected text. |
|
number | End position of selected text. |
|
number | Line number where the caret is located. Present in components like |
|
number | Column number (offset from line start) of the caret. Present in multi-line components like |
|
object | Text formatting information at the caret’s position. Present only for |
|
Array.<string> | HTML tag hierarchy at the caret’s position. Present only for |
