Fork me on GitHub
#nextjournal
<
2021-12-03
>
Lukas Domagala14:12:34

how do i put one viewer into another?

(v/html [:div.text-center
         [:button.bg-blue-500.hover:bg-blue-700.text-white.font-bold.py-2.px-4.rounded
          "press"]
         (v/plotly {:data [{:z [[1 2 3] [3 2 1]] :type "surface"}]})])
i’ve been trying this, but its not working. is there some way to make it happen?

mkvlr10:12:16

this should work when you wrap the v/plotly in a call to v/inspect. Plan to document this and write a bit about why that's required next week

mkvlr10:12:03

on second thought might also make a small change to support the snippet above

Lukas Domagala14:12:17

Great, thank you, I'll try it later today. Would the change work for all nested views?

respatialized17:12:26

what namespace is v/inspect in?

Lukas Domagala16:12:00

ah sorry, i’m talking about clerk