-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose a version of textboxs caret_position
method?
#236
Comments
It is not possible now due to the fact that the text box does not know its position (the position is in the
|
I'm busy with some other tasks now, but if you can remind/ping me next week on Discord, I can make some time. This should not be difficult to add. We can do it in real time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can a function similar to
caret_position
be exposed as a public or protected method for textbox and possibly labels?I'm rounding up some libraries for a personal project and been searching for one with the ability of causing "events" on words in either textbox and labels. This allows some tricks such as showing modals or footnotes when hovering the mouse over some words and other trickery. Looking into
elements
, I've noticed that thecaret_position
method seems to deduce the textbox's closest character to the mouse position and is very cleanly implemented. From there, the programmer can use this character position information with the text to implement actions.Since I don't know much about the code, I'm assuming there might be a good reason for the function being implemented
private
(or maybe there's another way of obtaining this information and I'm missing the point)The text was updated successfully, but these errors were encountered: