json-view
Builds JsonView Toggle ToggleGroup


The code that drew it
A still frame holds a repeating animation at its first frame and a one-shot at its last, because a still of a moving thing is not reproducible. Run the gallery to review motion.
fn json_view(_window: &mut Window, cx: &mut App) -> AnyElement {
let theme = cx.theme().clone();
stack(&theme)
.w(px(520.0))
.child(
JsonView::new("scene.json", scene_document())
.expanded_paths(&["credentials", "request", "request/headers", "steps"])
.selected("request/method")
.on_toggle(|_, _, _, _| {})
.on_select(|_, _, _| {}),
)
.into_any_element()
}