Can buttons in a button group wrap to the next line automatically? #2847
-
Question
Thank you in advance! Here is an example code: with ui.column().classes('w-[5%]'):
ui.label('left space')
with ui.column().classes('w-[90%]'):
with ui.button_group().props('flat'):
ui.button('One').props('flat')
ui.button('Two').props('flat')
ui.button('Three').props('flat')
...
ui.button('OneHundred').props('flat')
with ui.column().classes('w-[5%]'):
ui.label('right space') |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Daniel-Fei,
|
Beta Was this translation helpful? Give feedback.
Hi @Daniel-Fei,
I don't think this is possible. At least I can't find a prop or something in the Quasar documentation.
I don't think "spread" would help. Buttons in a group like
ui.button_group().classes('w-[500px]').props('spread')
simply spread over 500px instead of taking only the space they need. But they don't wrap.Yes, you can nest
ui.tooltip
elements with arbitrary styled child elements: