mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update 01-overview.md
This commit is contained in:
@@ -958,7 +958,7 @@ TextColumn::make('email')
|
||||
->placeholder(fn (User $record): string => "No email for {$record->name}")
|
||||
|
||||
TextColumn::make('role')
|
||||
->hidden(fn (User $record): bool => $record->role === 'admin')
|
||||
->badge(fn (User $record): bool => $record->role === 'admin')
|
||||
|
||||
TextColumn::make('name')
|
||||
->extraAttributes(fn (User $record): array => ['class' => "{$record->getKey()}-name-column"])
|
||||
|
||||
Reference in New Issue
Block a user