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

    Pass class to native component

    Framework
    2
    3
    128
    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.
    • T
      Tiago Razera last edited by

      Hi all, my first post here. Sorry if this is responded, I couldn’t find elsewhere.

      How do I pass a class from say a <q-input> to the native HTML <input>? Say I have this element:

      <q-input class=“my-class”></q-input>

      I need that when rendered the native component be like this:

      <input class=“my-class”/>

      Thanks in advance

      beets 1 Reply Last reply Reply Quote 0
      • beets
        beets @Tiago Razera last edited by

        @tiago-razera Like this:

        <q-input input-class=“my-class”></q-input>
        

        6b1726da-c577-40bb-9851-9f8c8d6c72df-image.png

        1 Reply Last reply Reply Quote 2
        • T
          Tiago Razera last edited by

          Thank you very much @beets !
          Sorry I didn’t see it in the docs
          Cheers

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