Hi, may i know is there some ways to select more than 1 options for datatable’s dropdown. Like the dcc.Dropdown’s multi param? Thanks.
dcc.Dropdown
dcc.Dropdown(
['New York City', 'Montreal', 'San Francisco'],
['Montreal', 'San Francisco'],
multi=True
)
dash datable
dash_table.DataTable(
id='table-dropdown',
data=df.to_dict('records'),
columns=[
{'id': 'climate', 'name': 'climate', 'presentation': 'dropdown'},
{'id': 'temperature', 'name': 'temperature'},
{'id': 'city', 'name': 'city', 'presentation': 'dropdown'},
],
editable=True,
dropdown={
'climate': {
'options': [
{'label': i, 'value': i}
for i in df['climate'].unique()
]
},
'city': {
'options': [
{'label': i, 'value': i}
for i in df['city'].unique()
]
}
}
)