BristolMyersSquibb / blockr

Composable, extensible no-code UI
https://bristolmyerssquibb.github.io/blockr/
GNU General Public License v3.0
36 stars 3 forks source link

Dynamic inputs #433

Open JohnCoene opened 1 month ago

JohnCoene commented 1 month ago

I don't think this is possible with blockr, correct me if I'm wrong.

The idea for our application is that the tables take a result block which returns a list of things, including: footnotes, protocols, treatments groups, populations, etc. This is so we can define the latter in a central place within the app

Then from within the following block we use this to generate the fields so that the user can, for instance, pick one or more footnotes from the list returned to use for that output.

JohnCoene commented 1 month ago

I think we can make this work using callbacks, a bit like we do in the select_block

https://github.com/BristolMyersSquibb/blockr/blob/061ac783f49cb98169e77c845ca851fe0a890354/R/blocks.R#L293