Add ui.icon_picker #3907
khannover
started this conversation in
Ideas / Feature Requests
Replies: 2 comments 4 replies
-
That's an interesting idea, @khannover. |
Beta Was this translation helpful? Give feedback.
1 reply
-
By the way, you can customize the "option" slot of ui.select([
'home',
'settings',
'info',
], on_change=lambda e: ui.notify(f'You chose "{e.value}".')).add_slot('option', '''
<q-item :props="props" clickable @click="$parent.$parent.$parent.$parent.toggleOption(props.opt)">
<q-item-section avatar>
<q-icon :name="props.label" />
</q-item-section>
<q-item-section>
<q-item-label v-html="props.label"></q-item-label>
</q-item-section>
</q-item>
''') But please don't ask about the chain of |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
i would love to see a ui.icon_picker to select an icon from a list of available (material-)icons.
Currently i use a ui.select element with all the material icon names as options (around 2500).
That's a very long list and i can only show the icon names in the list but not how the icon looks like.
It could work and look like the ui.color_picker but with icons instead of colors of course ;-)
I would use it somehow like this:
Beta Was this translation helpful? Give feedback.
All reactions