Hi @ctate:
I would like to use nested repeats for JSON-renderer. It works well for the single-level repeat but not for nested ones. I tried using patterns like this:
{ repeat: { statePath: { $template: "using $index" } } }
{ repeat: { statePath: { $item: "..." } } }
However, the inner statePath just expects a string:
Is there a way we could get one of the above patterns?
Here are a few use cases:
- Multiple Company → People: one card per company, each containing a table of that company's employees.
- Multiple Order → Line items: one row per order in an outer table, with an expandable inner table of the products included in each order.
- Multiple Project → Tasks: one card per project, each containing a checklist of its open tasks.
Happy to contribute if you point me to a preferred implementation.
Hi @ctate:
I would like to use nested repeats for JSON-renderer. It works well for the single-level repeat but not for nested ones. I tried using patterns like this:
{ repeat: { statePath: { $template: "using $index" } } }{ repeat: { statePath: { $item: "..." } } }However, the inner
statePathjust expects a string:Is there a way we could get one of the above patterns?
Here are a few use cases:
Happy to contribute if you point me to a preferred implementation.