I want to a dcc.Input that offers suggestions, like this:
dbc.Row(
[
html.DataList(id='vu_add_query_suggestions',children=list(df[column].apply(lambda x: html.Option(value=x)).values)),
dcc.Input(id='vu_add_query',
list='vu_add_query_suggestions',
debounce=True,
style={'width':'70%'}
)
]
)
I get the following error:
AttributeError: module 'dash_html_components' has no attribute 'DataList'
I am using the following module:
dash-html-components-1.1.2
I am guessing that this has to do with the versions of my various dash-modules. I tried updating dash-html-components to the latest version but then my app stopped working altogether with the following error message:
Traceback (most recent call last):
File "application.py", line 90, in <module>
import dash_html_components as html
File "/Users/davidnordfors/.conda/envs/dx2/lib/python3.8/site-packages/dash_html_components/__init__.py", line 1, in <module>
from dash.html import * # noqa: F401, F403, E402
ModuleNotFoundError: No module named 'dash.html'
Can someone show how to make this work?