Hello streamliters
I am trying to use the st.column_config.TimeColumn() component with st.data_editor.
Here is the code:
editable_ts_df = st.data_editor(ts_entries_df,
use_container_width=True,
column_order=['activity','client','start','end'],
hide_index=True,
column_config={
"activity": st.column_config.SelectboxColumn(
options=jobs,
required=True,
),
"client": st.column_config.SelectboxColumn(
options=customers,
required=True,
),
"start": st.column_config.TimeColumn(
min_value=datetime.time(8, 0),
max_value=datetime.time(19, 0),
format="H.mm",
step=1800,
required=True
),
"end": st.column_config.TimeColumn(
min_value=datetime.time(8, 0),
max_value=datetime.time(19, 0),
format="H.mm",
step=1800,
required=True
),
},
num_rows="dynamic")
The result, however, is not as I would expect:
In fact, either the min_value, the max_value, format and the step args are not intended correctly. The expected result would have been: hour from 8 to 19 (NO am, pm), minute steps for half an hour (1800 secs).
Iโm running the app locally
My python version is 3.9.13
My streamlit version is 1.36.0
Is there someone who can help me with this?
Thank you !!