auto complete
Browse files
panel_app/trafic_analysis_panel.py
CHANGED
|
@@ -970,7 +970,14 @@ persistent_table = pn.widgets.Tabulator(
|
|
| 970 |
layout="fit_data_table",
|
| 971 |
)
|
| 972 |
|
| 973 |
-
site_select = pn.widgets.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 974 |
site_traffic_plot_pane = pn.pane.Plotly(
|
| 975 |
sizing_mode="stretch_both",
|
| 976 |
config=PLOTLY_CONFIG,
|
|
@@ -999,7 +1006,14 @@ site_degraded_table = pn.widgets.Tabulator(
|
|
| 999 |
layout="fit_data_table",
|
| 1000 |
)
|
| 1001 |
|
| 1002 |
-
city_select = pn.widgets.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1003 |
city_traffic_plot_pane = pn.pane.Plotly(
|
| 1004 |
sizing_mode="stretch_both",
|
| 1005 |
config=PLOTLY_CONFIG,
|
|
|
|
| 970 |
layout="fit_data_table",
|
| 971 |
)
|
| 972 |
|
| 973 |
+
site_select = pn.widgets.AutocompleteInput(
|
| 974 |
+
name="Select a site for detailed view (Type to search)",
|
| 975 |
+
options={},
|
| 976 |
+
case_sensitive=False,
|
| 977 |
+
search_strategy="includes",
|
| 978 |
+
restrict=True,
|
| 979 |
+
placeholder="Type site code or city...",
|
| 980 |
+
)
|
| 981 |
site_traffic_plot_pane = pn.pane.Plotly(
|
| 982 |
sizing_mode="stretch_both",
|
| 983 |
config=PLOTLY_CONFIG,
|
|
|
|
| 1006 |
layout="fit_data_table",
|
| 1007 |
)
|
| 1008 |
|
| 1009 |
+
city_select = pn.widgets.AutocompleteInput(
|
| 1010 |
+
name="Select a City for aggregated view (Type to search)",
|
| 1011 |
+
options=[],
|
| 1012 |
+
case_sensitive=False,
|
| 1013 |
+
search_strategy="includes",
|
| 1014 |
+
restrict=True,
|
| 1015 |
+
placeholder="Type city name...",
|
| 1016 |
+
)
|
| 1017 |
city_traffic_plot_pane = pn.pane.Plotly(
|
| 1018 |
sizing_mode="stretch_both",
|
| 1019 |
config=PLOTLY_CONFIG,
|