Smykoil
Smykoil
FFilament
Created by Smykoil on 5/12/2024 in #❓┊help
a cell with a zero value is not displayed, even when formatting
the following code does not work:
TextColumn::make('is_notifications_allowed')
->label('Notifications')
->formatStateUsing(fn (?bool $state): string => match ($state) {
true => 'Allowed',
false => 'Prohibited',
null => 'Waiting',
})
->badge()
TextColumn::make('is_notifications_allowed')
->label('Notifications')
->formatStateUsing(fn (?bool $state): string => match ($state) {
true => 'Allowed',
false => 'Prohibited',
null => 'Waiting',
})
->badge()
is it possible to work around this behavior?
3 replies