Skip to content

Acquiring complex object with nested views #8

Description

@thorwhalen

What is needed here is a way to recursively (statically or dynamically) open views to satisfy more complex inputs.

Some instances of this can be found in #7.

Let's say you had three python classes: A, B, and C such that, at some point you need from the user to get an instance of C:

C(a: A, b: B)

To do this, you need to get an A and a B in the first place, whose __init__ requires further objects.

The input elements for a and b could include the possibility of uploading these from a file, or a DB managed by the app's backend. But sometimes (for example, to get these saved items in the first place) we may need to ask the user to construct their a or b...

So we click on a "make one" button of the a input element, and this brings up a view for A(d: D, e: E, ...).
The user can then go down the tree until all inputs are acquired.

Of course, if this process takes time, we want to offer, by default, some caching and/or persistence possibilities to not use all that work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions