Hi,
I would like to create HTML label in my ui.input_select. Currently I'm trying something like this:
from shiny.express import input, render, ui
entity_choices= {
'DE': ui.tags.div(
ui.tags.img(src='https://flagcdn.com/w20/de.png', style='margin-right: 10px;'),
'Germany (DE)',
style='display: flex; align-items: center;'
),
'FR': ui.tags.div(
ui.tags.img(src='https://flagcdn.com/w20/fr.png', style='margin-right: 10px;'),
'France (FR)',
style='display: flex; align-items: center;'
)
}
ui.input_select(
"input",
"Entity",
choices=entity_choices,
selected="DE"
)
This doesn't seems to work as the image is not displayed.
P.S: I'm not an expert in HTML, sorry in advance!