Fork me on GitHub
#portal
<
2021-08-25
>
jjttjj17:08:32

Can I have everything sent to portal be be rendered as a table or at least attempted to be? I'm attempting this with

(p/open {:portal.viewer/default :portal.viewer/table}) 
(add-tap #'p/submit) 
But it doesn't seem to be working Edit: Nevermind, figured it out by searching the chat 🙂 This is the correct way:
(defn my-submit [value]
  (p/submit
    ^{:portal.viewer/default :portal.viewer/hiccup}
    [:portal.viewer/table value]))

(p/open)
(add-tap #'my-submit)

👍 3
djblue17:08:14

You can also attach the default viewer directly to any value that supports metadata :thumbsup:

jjttjj17:08:57

oh that's awesome!

jjttjj17:08:10

Is there a way to specify column ordering?

djblue19:08:33

No, but you can select the columns you would like via the command menu.

👍 3