quasar icon indicating copy to clipboard operation
quasar copied to clipboard

[v1 - request] QBtnToggle: Optional QTooltips for each button

Open arjanski opened this issue 7 years ago • 2 comments

While QBtnToggle is made up of QBtn's, it currently does not allow to add QTooltips for each button (as you would be able to with a single QBtn).

It would be fantastic if we could somehow assign QTooltips to specific buttons, maybe using a slot or a specific child component that could target a button via a name attribute.

arjanski avatar Mar 06 '19 09:03 arjanski

I would also appreciate this possibility

mroes avatar Mar 20 '19 11:03 mroes

Will be available in beta.21. You'll now be able to customize the buttons content too, not just rely on "label" and "icon" in "options" Object. Example:

<q-btn-toggle
  v-model="model"
  push
  glossy
  toggle-color="teal"
  :options="[
    {label: 'One', value: 'one', slot: 'one'},
    {label: 'Two', value: 'two', slot: 'two'},
    {label: 'Three', value: 'three', slot: 'three'}
  ]"
>
  <template v-slot:one>
    <q-tooltip>One!</q-tooltip>
  </template>

  <template v-slot:two>
    <q-tooltip>Two!</q-tooltip>
  </template>

  <template v-slot:three>
    <q-tooltip>Three!</q-tooltip>
  </template>
</q-btn-toggle>

rstoenescu avatar May 04 '19 16:05 rstoenescu