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