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
Closure Customization:
->columSpan(fn () => your conditon)
Thanks! Is there a way to retrieve the current view we are in at this point? So either the edit, create of view
use $context
Wow awesome, thank you very much!