portal

2024-02-06T11:36:14.700099Z

Hi, Is there a way to auto-expand all values in portal? i’ve seen the commands expand-inc and toggle-expand which act of the selected value, but i’d like to automatically expand all values which are submitted to portal. Is that possible?

2024-02-07T11:57:46.908119Z

Thank you

djblue 2024-02-07T06:45:53.816049Z

Currently, the easiest way to do this is to switch to the tree viewer which by default expands all nested values. You can also automatically set that as the default viewer in your tap handler via attaching metadata before submitting it to Portal. You can also use the https://github.com/djblue/portal/blob/master/src/portal/viewer.cljc#L86C7-L89 helper fn to set the metadata.