Hi there, Can I ask a question about portal?
it is possible change de default viewer from inspector to table?
Hi @blindcoding9, there isn't a way to do this globally, but you can set a default viewer for a value via metadata. (with-meta value {:portal.viewer/default :portal.viewer/table})
would be a work around for now.
However, I'm open to suggestions on how to improve the UX 👌
oh that's good to know. I agree I would also love to see a way to make the global sticky, but the metadata also opens some nice possibilities
^{:portal.viewer/default :portal.viewer/hiccup} [:div [:h1 "hello, world"] [:portal.viewer/tree {:some :data}]]
💯
You can paste the edn string directly into the https://djblue.github.io/portal/ and you get this view
You are looking at a string, parsed as edn, rendered as hiccup, with an element that is a portal viewer :aw_yeah: