Spaces:
Sleeping
Sleeping
Update pages/comps_data.py
Browse files- pages/comps_data.py +23 -6
pages/comps_data.py
CHANGED
|
@@ -128,20 +128,37 @@ def main():
|
|
| 128 |
|
| 129 |
col_3_1, col_3_2 = st.columns(2)
|
| 130 |
with col_3_1:
|
| 131 |
-
|
| 132 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
st.data_editor(
|
| 134 |
-
|
| 135 |
column_config={
|
| 136 |
-
"
|
| 137 |
"Your favorite?",
|
| 138 |
help="Select your **favorite** widgets",
|
| 139 |
default=False,
|
| 140 |
)
|
| 141 |
},
|
| 142 |
-
|
| 143 |
hide_index=True,
|
| 144 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
|
| 146 |
with col_3_2:
|
| 147 |
c2 = st.container(height=120)
|
|
|
|
| 128 |
|
| 129 |
col_3_1, col_3_2 = st.columns(2)
|
| 130 |
with col_3_1:
|
| 131 |
+
data_df = pd.DataFrame(
|
| 132 |
+
{
|
| 133 |
+
"widgets": ["st.selectbox", "st.number_input", "st.text_area", "st.button"],
|
| 134 |
+
"favorite": [True, False, False, True],
|
| 135 |
+
}
|
| 136 |
+
)
|
| 137 |
+
|
| 138 |
st.data_editor(
|
| 139 |
+
data_df,
|
| 140 |
column_config={
|
| 141 |
+
"favorite": st.column_config.CheckboxColumn(
|
| 142 |
"Your favorite?",
|
| 143 |
help="Select your **favorite** widgets",
|
| 144 |
default=False,
|
| 145 |
)
|
| 146 |
},
|
| 147 |
+
disabled=["widgets"],
|
| 148 |
hide_index=True,
|
| 149 |
+
)
|
| 150 |
+
# st.data_editor(
|
| 151 |
+
# df_data_checkbox,
|
| 152 |
+
# column_config={
|
| 153 |
+
# "Select rows": st.column_config.CheckboxColumn(
|
| 154 |
+
# "Your favorite?",
|
| 155 |
+
# help="Select your **favorite** widgets",
|
| 156 |
+
# default=False,
|
| 157 |
+
# )
|
| 158 |
+
# },
|
| 159 |
+
# # disabled=[df_data.columns],
|
| 160 |
+
# hide_index=True,
|
| 161 |
+
# )
|
| 162 |
|
| 163 |
with col_3_2:
|
| 164 |
c2 = st.container(height=120)
|