Referencing a field

I want to dynamically set a field's columnSpan. I know that's doable because the columnSpan accepts a closure but I need to reference another field to figure out the column span. ie. set columnSpan is 2 if field 1 is visible otherwise set it to 1
Solution:
->columnSpan(fn ($get) => $get('field1') == 1 ? 2 : 1)
Jump to solution
3 Replies
Stormageddon, Dark Lord of All
nvm I think I figured it out, I'll try out the solution and if it works I'll share it here
Solution
ZedoX
ZedoX8mo ago
->columnSpan(fn ($get) => $get('field1') == 1 ? 2 : 1)
Stormageddon, Dark Lord of All
was about to mark as solved, this is what I came up with
No description
Want results from more Discord servers?
Add your server
More Posts