James McCool
commited on
Commit
·
c141e28
1
Parent(s):
923ad63
Update selection mode in Handbuilder tab of Streamlit app from "single" to "single-row" for improved clarity in player selection functionality.
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -621,7 +621,7 @@ if selected_tab == 'Handbuilder':
|
|
| 621 |
player_select_event = st.dataframe(
|
| 622 |
st.session_state['player_select_df'].style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Salary', 'Own']).format(precision=2),
|
| 623 |
on_select="rerun",
|
| 624 |
-
selection_mode="single", # Single row selection
|
| 625 |
key="player_select_dataframe",
|
| 626 |
height=500,
|
| 627 |
hide_index=True
|
|
@@ -701,7 +701,7 @@ if selected_tab == 'Handbuilder':
|
|
| 701 |
lineup_select_event = st.dataframe(
|
| 702 |
st.session_state['lineup_display_df'].style.background_gradient(axis=0).background_gradient(cmap='RdYlGn', subset=['Median']).background_gradient(cmap='RdYlGn_r', subset=['Salary', 'Own']).format(precision=2),
|
| 703 |
on_select="rerun",
|
| 704 |
-
selection_mode="single", # Single row selection
|
| 705 |
key="lineup_display_dataframe",
|
| 706 |
height=445,
|
| 707 |
hide_index=True
|
|
|
|
| 621 |
player_select_event = st.dataframe(
|
| 622 |
st.session_state['player_select_df'].style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Salary', 'Own']).format(precision=2),
|
| 623 |
on_select="rerun",
|
| 624 |
+
selection_mode="single-row", # Single row selection
|
| 625 |
key="player_select_dataframe",
|
| 626 |
height=500,
|
| 627 |
hide_index=True
|
|
|
|
| 701 |
lineup_select_event = st.dataframe(
|
| 702 |
st.session_state['lineup_display_df'].style.background_gradient(axis=0).background_gradient(cmap='RdYlGn', subset=['Median']).background_gradient(cmap='RdYlGn_r', subset=['Salary', 'Own']).format(precision=2),
|
| 703 |
on_select="rerun",
|
| 704 |
+
selection_mode="single-row", # Single row selection
|
| 705 |
key="lineup_display_dataframe",
|
| 706 |
height=445,
|
| 707 |
hide_index=True
|