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

    Position of clearable icon on input

    Framework
    3
    4
    218
    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.
    • A
      AlexSantanna last edited by AlexSantanna

      Is there a way to make clearable icon in q-input appears in front of slot:append? By default it appears after.

      https://codepen.io/Tand/pen/mdeyQxB?editors=1010

      1 Reply Last reply Reply Quote 0
      • A
        AlexSantanna last edited by

        Any one?

        1 Reply Last reply Reply Quote 0
        • s.molinari
          s.molinari last edited by s.molinari

          Build it yourself using the prepend slot.

          Scott

          1 Reply Last reply Reply Quote 0
          • skwrl
            skwrl last edited by

            Take the code from the docs on labeled “Clearable is equivalent to” and put it in your append slot.

            Here is the code to make it work with your codepen

                <template v-slot:append>
                  <q-icon 
                    v-if="search" 
                    name="cancel" 
                    class="cursor-pointer"
                    @click.stop="text = null" 
                  ></q-icon>
                  
                  <q-icon name="search"></q-icon>
                </template>
            1 Reply Last reply Reply Quote 0
            • First post
              Last post