Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MariaDB, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
21.78k stars 1.49k forks source link

Modal Component - Give Params property as Local Context #14117

Open poirazis opened 2 months ago

poirazis commented 2 months ago

When we use the Modal Component we usually need to pass down some parameters.

Currently we need to set a State value before opening the Modal so the components inside can access said value.

I suggest that the Modal Component gets a property Params ( similar to Query Params ) which will be exposed as context to components inside the modal.

This way you dont need to maintain Modal specific Params in the outer Screen State for all your modals, but instead each Modal will carry its own Params and the components inside will be able to bind to the lets say {{ Modal Params._id }}

linear[bot] commented 2 months ago

BUDI-8437 Modal Component - Give Params property