# Dash: Changing options of static\_dropdown via callback in data-table component

**URL:** <https://community.plotly.com/t/dash-changing-options-of-static-dropdown-via-callback-in-data-table-component/18081>\
**Category:** Dash Python\
**Created:** [January 14, 2019, 3:30pm UTC](https://community.plotly.com/t/dash-changing-options-of-static-dropdown-via-callback-in-data-table-component/18081 "2019-01-14T15:30:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sterlingbutters](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@sterlingbutters](https://community.plotly.com/u/sterlingbutters)\
**Post date:** [January 14, 2019, 3:30pm UTC](https://community.plotly.com/t/dash-changing-options-of-static-dropdown-via-callback-in-data-table-component/18081/1 "2019-01-14T15:30:57Z")

</div>

Is there a way to change the options available to the cell-rendered dropdown?  
\*sorry I’m having trouble formatting the text as code in this post

Declaration of drop down options in data-table:  
dash\_table.DataTable(  
id=‘table-dropdown’,  
data=df.to\_dict(‘rows’),  
columns=[  
{‘id’: ‘climate’, ‘name’: ‘climate’, ‘type’: ‘dropdown’},  
{‘id’: ‘temperature’, ‘name’: ‘temperature’},  
{‘id’: ‘city’, ‘name’: ‘city’, ‘type’: ‘dropdown’},  
],

```
        editable=True,
        column_static_dropdown=[
            {
                'id': 'climate',
                'dropdown': [
                    {'label': i, 'value': i}
                    for i in df['climate'].unique()
                ]
            },
            {
                'id': 'city',
                'dropdown': [
                    {'label': i, 'value': i}
                    for i in df['city'].unique()
                ]
            },
        ]
    ),

```

Changing of drop down options with callback on normal dropdown:  
@app.callback(  
dash.dependencies.Output(‘my-dropdown’, ‘options’),  
[dash.dependencies.Input(‘my-input’, ‘value’)])  
def update\_output(value):  
return [{‘label’: value, ‘value’: value}]

I can’t think of any component property of the data-table that I would access to achieve this.

---

<div class="post-metadata">

**Author:** ![josesaura](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/josesaura/32/6806_2.png) [@josesaura](https://community.plotly.com/u/josesaura)\
**Post date:** [May 21, 2019, 5:33pm UTC](https://community.plotly.com/t/dash-changing-options-of-static-dropdown-via-callback-in-data-table-component/18081/2 "2019-05-21T17:33:28Z")

</div>

This would be useful for me too. Any updates on this could be addressed?
