Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python/Dash Callbacks #7

Closed
elliothershberg opened this issue Aug 27, 2021 · 0 comments · Fixed by #16
Closed

Python/Dash Callbacks #7

elliothershberg opened this issue Aug 27, 2021 · 0 comments · Fixed by #16

Comments

@elliothershberg
Copy link
Member

There is a general API for alerting Python Dash callbacks that are listening for changes. It involved calling it like this:

onChange={
    /*
     * Send the new value to the parent component.
     * setProps is a prop that is automatically supplied
     * by dash's front-end ("dash-renderer").
     * In a Dash app, this will update the component's
     * props and send the data back to the Python Dash
     * app server if a callback uses the modified prop as
     * Input or State.
     */
     e => setProps({ value: e.target.value })
}

Note: I'm not sure how useful this is, and it probably would only apply to people using it in a Dash app, not a notebook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant