Hide Column Based on Active Group?

What is the easiest way to achieve something like this:
Tables\Columns\TextColumn::make('affiliate_name')
->label('Affiliate')
->hidden(fn() => $table->getActiveGroup() === 'affiliate_name')
Tables\Columns\TextColumn::make('affiliate_name')
->label('Affiliate')
->hidden(fn() => $table->getActiveGroup() === 'affiliate_name')
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?