mckinsey / vizro

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

[BUG] Fix considering custom control actions #478

Closed petar-qb closed 4 months ago

petar-qb commented 4 months ago

Description

This PR allows actions to be triggered if a control object is added and is manually enabled as: vm.Page.add_type("controls", vm.Button) controls=[vm.Button(actions=[vm.Action(function=export_data())])]

Run the examples/_dev/app.py from the main and bug/fix_considering_custom_control_actions branches to see the difference.

Screenshot

Notice