Hi,
I use selectbox
for selecting a desired sentence.
The thing is that my sentences are in R2L language, so I used the below markdown
to represent them in R2L way in the drop-down list, so far so good.
But when I choose a sentence, it is presented (L2R) not as the way it does on the list (R2L).
import streamlit as st
if __name__ == '__main__':
st.markdown("""<style>
div[role="listbox"] ul {
direction: RTL;
text-align: right;
} </style>""", unsafe_allow_html=True)
selected = st.selectbox("select", ["", "R2L text01", "R2L text02", "R2L text03"])
How should I do it?
Many thanks!