How can we pass a closure in the column method?

Is there a way to set a repeater columns based on a certain condition?
No description
6 Replies
waleedGRT
waleedGRT10mo ago
Filament\Forms\Components\Component::columns(): Argument #1 ($columns) must be of type array|string|int|null, Closure given, 🧐
krekas
krekas10mo ago
error is very clear. you cannot pass closure what are you trying to do?
waleedGRT
waleedGRT10mo ago
When tax is set to out of scope then columns should be 3 instead of 4
No description
waleedGRT
waleedGRT10mo ago
Hopefully, you can see the issue. Is there any other way?
Dennis Koch
Dennis Koch10mo ago
This is #table-repeater right? So best to ask in that channel
waleedGRT
waleedGRT10mo ago
Okay, I post the issue there