icons in single select options #333
Replies: 1 comment 8 replies
-
Definitely. The select already allows for custom options, which means that you can add anything you want to an option, as long as it has the API that the select expects. See this story for example: https://ui.dhis2.nu/demo/?path=/story/forms-single-select-single-select--with-custom-options-and-on-change (https://github.com/dhis2/ui/blob/master/components/select/src/single-select/single-select.stories.js#L28) It's been a while since I worked with it, but I think you need to have a |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to get icons in single select options? I assume this isn't possible now since i didn't see a property for it. It could be useful in analytics apps where users are selecting from a long list of different types of items (e.g. data elements, program attributes, indicators...) where each of the types have a different icon associated with them. The screenshot below shows the dropdown with the list to be filtered behind it:
Beta Was this translation helpful? Give feedback.
All reactions