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

Did you find this page helpful?