QBtnToggle scoped slot #15618
-
It would be very nice if QBtnToggle would have a slot with a scope, for example #item="scope", which would have a element from the options array and an index, inside it would be possible to place QBtn. The current reality forces to produce slots for monotonous buttons. For example, an example from the documentation would be solved by specifying the name of the icon in the options, and not by creating three almost identical slots. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I just learned something about the q-button-toggle customization from this video, maybe it could help you too? Note that you could create the slot templates by |
Beta Was this translation helpful? Give feedback.
I just learned something about the q-button-toggle customization from this video, maybe it could help you too? Note that you could create the slot templates by
v-for
-iterating your options, like in the codepen referenced in #5925. Btw the documentation link in the description is broken.