for name in mp.NAMES:
count += 3
# Needs to be redeclared to line everything in same line
col_1, col_2, col_3= st.columns(3)
with col_1:
st.markdown(f'<p style=\'text-align: left; color: black;\'>{mp.name_mapping(name)["label"]}</p>',
unsafe_allow_html=True)
with col_2:
dynamic_toggle_1[model] = st.toggle('Op 1', key=count)
dynamic_toggle_2[model] = st.toggle('Op 2', key=count + 1)
with col_3:
if dynamic_toggle_2[model]:
dynamic_toggle_3[model] = st.toggle('Op3', key=count + 2, disabled=False)
else:
dynamic_toggle_3[model] = st.toggle('Op3', key=count + 2, disabled=True)
I’m trying to make the toggle buttons on column 3 to false when I toggle the button 2 on the column 2 to false.
I already was able to disable it but I wanted to change it to false too and I can’t figure how to do this.
Any one able to point me to the right direction?
Thanks in advance