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

    Tooltip on a toggle

    Help
    2
    4
    1136
    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.
    • feech
      feech last edited by

      Hi all –

      What is the proper way to have a tooltip show when a user hovers over a toggle? We have a label, but hide the label when the screen real estate is too small. We want a tooltip to popup instead for the smaller screens. For some reason somethings like this:

      <q-toggle v-model=“filtered” class=“lt-sm” color=“teal” label="" @input=“onToggleShowSubscribedOnly” title=“text”>
      <q-tooltip>Show subscribed only</q-tooltip>
      </q-toggle>

      Only shows the tooltip when the toggle is clicked, not when hovered.

      thanks!

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

        anyone? Tooltips on toggle just not supported?

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

          Have you tried wrapping the q-tooltip in a div or span?

          <span>
            <q-toggle v-model=“filtered” class=“lt-sm” color=“teal” label="" @input=“onToggleShowSubscribedOnly” title=“text”>
            </q-toggle>
            <q-tooltip>Show subscribed only</q-tooltip>
          </span>
          
          1 Reply Last reply Reply Quote 0
          • feech
            feech last edited by

            Yea, that’s what I ended up doing. Thanks Benoit!

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