Skip to content

Improved callback_context #1952

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

Merged
merged 16 commits into from
Apr 22, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added changlog and lint
  • Loading branch information
AnnMarieW committed Apr 21, 2022
commit d7698f1d1ba728e528f411ff85505379f54b1eb5
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ This project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]

### Added
- [#1952](https://github.com/plotly/dash/pull/1952) Improved callback_context
- Closes [#1818](https://github.com/plotly/dash/issues/1818) Closes [#1054](https://github.com/plotly/dash/issues/1054)
- adds `dash.ctx`, a more concise name for `dash.callback_context`
- adds `ctx.triggered_prop_ids`, a dictionary of the component ids and props that triggered the callback.
- adds `ctx.triggered_id`, the `id` of the component that triggered the callback.
- adds `ctx.args_grouping`, a dict of the inputs used with flexible callback signatures.

### Fixed

- [#2015](https://github.com/plotly/dash/pull/2015) Fix bug [#1854](https://github.com/plotly/dash/issues/1854) in which the combination of row_selectable="single or multi" and filter_action="native" caused the JS error.
Expand Down
1 change: 0 additions & 1 deletion dash/_callback_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,4 +287,3 @@ def using_outputs_grouping(self):


callback_context = CallbackContext()