No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Programmatic access to input elements for focus and select

    Framework
    2
    3
    1954
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dsl101 last edited by

      I tried to find an answer to this by browsing the source, but I couldn’t find the code for the input element. I’m desperately looking for a UI framework like Quasar which support programmatic access to input elements. I’ve been using vue-mdl for some time, but that’s transitioning to vue-mdc now and has a long way to go. The specific feature I’m after is being able to focus and select text within in input field from within javascript. This wasn’t available in vue-mdl but I was able to add it in by hand.

      Does the Quasar input element support these actions (focus() and select()) on input elements natively?

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        There’s currently no component which wraps an input field, so you can focus()/select() it as you wish. In v0.14 on the other hand there will be an input wrapper component, but you will still be able to access the native input element.

        1 Reply Last reply Reply Quote 0
        • D
          dsl101 last edited by

          Ah - that explains why I couldn’t find it in the source :). Many thanks.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post