Replies: 1 comment 2 replies
-
This is an interesting idea. I need to think about how it could be done and what new hooks/APIs might need to be created to enable it. Is this the root request: create a component programmatically with dynamic information? It might make sense to create an issue with this. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was thinking that it could be cool to chain an event of the first component to trigger a specific chained component depending on the user action. I recently moved from a UIKit project to bootstrap, I don't miss the former framework except for the pre-built modals they have, for instance a prompt modal requesting for a single field, a Yes - No modal, something like .Net messageboxes. With that you can ask user confirmation before deleting content, you can manage file upload on a modal (maybe using django forms?) Having this possibility, I could create a modal component with pre-built user interface (maybe with same replaceable strings/infos) and send to the first component info about what component and what parameters to send with it depending on the buttons the user presses. I don't know if this could be useful in other use case scenarios, but it goes in the DRY direction, that I'm starting to strongly appreciate.
I don't know how easy could it be to be done, because it means that there would be different way to instantiate a component, unless there would be a parameter in the template to prevent init execution for the chained component until it's really needed?
Beta Was this translation helpful? Give feedback.
All reactions