mckinsey / vizro

Vizro is a toolkit for creating modular data visualization applications.
https://vizro.readthedocs.io/en/stable/
Apache License 2.0
2.61k stars 116 forks source link

Apply `ctx` abbreviation consistently #257

Closed huong-li-nguyen closed 8 months ago

huong-li-nguyen commented 8 months ago

Description

Note: ctx shortcut currently doesn't exist for dash_clientside yet, so there we would use the old syntax. However, with this recent PR on Dash that got merged (but not released), we should be able to replace something like:

window.dash_clientside.callback_context.triggered[0].prop_id.split('.')[0] with window.dash_clientside.callback_context.trigger_id in the future if we upgrade to the latest Dash version

Screenshot

Notice