Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload/Recreate components #708

Open
jfitisoff-juul opened this issue Sep 11, 2021 · 2 comments
Open

Reload/Recreate components #708

jfitisoff-juul opened this issue Sep 11, 2021 · 2 comments

Comments

@jfitisoff-juul
Copy link

Hi, had a question: I've been making progress on an app that displays a list of results. It also has some radio buttons and checkboxes that are intended to allow the user to refine the results set. I've figured out how to manage the search options as they are updated and am using that to generate a new list of things to display.

But I'm running into a problem at that point. I haven't figured out how to "re-display" the results.

  • SearchComponent
    • ResultsComponent
      • ResultComponent1
      • ResultComponent2

When the SearchComponent is updated I want to generate a new ResultsComponent to display the new search results. Is there some way to do this? I've been through the docs and have done a lot of experimenting but haven't found a way to do it yet. Sorry if the question is a little too vague or naive, I'm sort of new to all of this.

Thanks

@almarklein
Copy link
Member

From what I understand you need to instantiate these subwidgets on the fly and have trouble doing that, right? You probably have an vbox or something for these resultcomponents to appear in. You can then instantiate them and set parent to the resultcomponent. Or use something like:

with the_result_component_container:
    ResultComponent()

@jfitisoff-juul
Copy link
Author

Thanks Almar!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants