Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • Isomorphic
    replied
    Yes, you can call setSelectionRange(0, 0) on your item

    Leave a comment:


  • Is it possible to manually move caret in a FormItem?

    In our app, we have a function where forms enter and exit "editmode" i.e. it can be seen when the form starts to be editable. When that happens we put focus on one specific item in the form.

    All this works, but if the formitem is not empty (i.e we're editing rather then creating a new item), the caret appears at the end of the text. It would be better if the caret was at the start of the formitem (a dateitem). So that you can just start typing.

    Is this at all possible?
Working...