Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Change Div style with @app.callback

$
0
0

@Masya wrote:

Hi!

I’m trying to change the Div style with a callback, but getting an error:
dash.exceptions.InvalidCallbackReturnValue: The callback …admin_dropdown_div.style… is a multi-output.

@app.callback(
    [Output('admin_dropdown_div', 'style')],
    [Input(component_id='year-selected', component_property='value')]
)
def admin_dropdown_div(input1):
    if current_user.all_regions == 1:
        return {'display': 'block'}

are there options to fix this?

Posts: 6

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles