I am using a TextArea in a project and I would like to show the current position of the caret/cursor when moving around in the text area with the arrow keys on the keyboard. I would also like to get the position when I click in the TextArea using the mouse.
I think to do this, I need to get the caretPosition exposed and also the necessary events to use for tracking the position.
Basically, I want to show the current caret position in a label like this: Pos 2/3500 where 3500 is TextArea.text.length.
I think to do this, I need to get the caretPosition exposed and also the necessary events to use for tracking the position.
Basically, I want to show the current caret position in a label like this: Pos 2/3500 where 3500 is TextArea.text.length.