Fork me on GitHub
#clerk
<
2023-03-01
>
teodorlu15:03:19

Good afternoon! Is there metadata I can set on my (clerk/table ,,,) form to get the table to display in full width? I believe I've seen it done, but I can't find any example of it in the book or in either of the reference examples.

1
otfrom15:03:36

(clerk/table {::clerk/width :full},,,)

💯 2
otfrom15:03:54

the other two are :wide and :prose IIRC

💯 1
teodorlu15:03:45

Perfect, thanks! 🙌 I was using the seq-of-maps form -- so I tried puttting ::clerk/width :full in the form metadata rather than in the clerk/table arg itself, which worked.

^{:nextjournal.clerk/width :full}
(clerk/table (for [json-path (sort (rfem-unittest-files))]
               {:file (clerk/code json-path)
                :id (clerk/code (input-file-hash json-path))}))

🆒 1