How to implement a conditional column span?

Hi! We are looking to implement a conditional column span. At this point we have a form schema with 4 columns. When viewing a user we want to use 3 columns for the user info and 1 column for a card with some general info (last online, time created etc.). However, when creating or editing a user we want the form to span the whole 4 columns and hide the card. Is this possible? Thanks in advance!
4 Replies
Dennis Koch
Dennis Koch2y ago
Closure Customization: ->columSpan(fn () => your conditon)
TiBiBa
TiBiBaOP2y ago
Thanks! Is there a way to retrieve the current view we are in at this point? So either the edit, create of view
toeknee
toeknee2y ago
use $context
TiBiBa
TiBiBaOP2y ago
Wow awesome, thank you very much!
Want results from more Discord servers?
Add your server