menu_item
doesn't have the icon parameter
#4039
Replies: 3 comments 2 replies
-
it will be a great nice to have for action menus! |
Beta Was this translation helpful? Give feedback.
-
Great suggestion. Would you like to create a pull request? |
Beta Was this translation helpful? Give feedback.
-
@Mte90 As far as I know, Quasar's QItem doesn't have an "icon" prop, but you need to nest item sections with icons. This is already possible in NiceGUI: with ui.button(icon='menu'):
with ui.menu():
with ui.menu_item():
with ui.item_section().props('avatar'):
ui.icon(name='bluetooth')
ui.item_section('Icon as avatar') ![]() If we were to introduce an item parameter for What about introducing a with ui.button(icon='menu'):
with ui.menu():
with ui.menu_item():
ui.item_icon('bluetooth')
ui.item_section('Icon as avatar') |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The
chip
component has that parameter but themenu_item
it is missing.Quasar already support that but it is missing in nicegui.
Right now we are using emoji but it sot very good and inject
ui.icon
get a wrong position in my tests.Beta Was this translation helpful? Give feedback.
All reactions