Skip to content

need a way to control which output i don’t want to update #668

Closed

Description

@jimmybow

the multiple outputs is great but i face some issue.
if i have a lots of outputs, it need a way to control which output i don’t want to update .
the code maybe like as follows:


@app.callback([
    Output('graph', 'figure'),
    Output('data-table', 'data'),
    Output('data-table', 'columns'),
    Output('container', 'style')
], [Input('data-dropdown', 'value')])
def multi_output(value):
    if condition_1:
        ...
        return [preventupdate, b, c, d]
    elif condition_2:
       ...
       return [a, preventupdate, c, d]
    else:
       ...
       return [a, b, c, preventupdate]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions