Mazz
Mazz
FFilament
Created by Mazz on 5/8/2024 in #❓┊help
FileUpload
i'm sorry - thank you. My bad
6 replies
FFilament
Created by Mazz on 5/8/2024 in #❓┊help
FileUpload
yes
6 replies
FFilament
Created by Hai NGUYEN on 8/12/2023 in #❓┊help
cannot show icon
Is this a desired behaviour? Because in my case i'd like to render a Icon or Badges if the value is null. Tried with ->state(null) and ->default(null) but with the same outcome. If desired: How could i let this render?
16 replies
FFilament
Created by Hai NGUYEN on 8/12/2023 in #❓┊help
cannot show icon
But it seems if we have null values the Column doesn't render at all
16 replies
FFilament
Created by Hai NGUYEN on 8/12/2023 in #❓┊help
cannot show icon
@hainguyen8610 i solved it by setting a State. Since External does not exist it might be an issue if it is null
IconColumn::make('external')
->icon('heroicon-o-arrow-top-right-on-square')
->state('random')
->label('Link'),
IconColumn::make('external')
->icon('heroicon-o-arrow-top-right-on-square')
->state('random')
->label('Link'),
16 replies
FFilament
Created by Hai NGUYEN on 8/12/2023 in #❓┊help
cannot show icon
I have the same issue
IconColumn::make('External')
->icon(fn(string $state): string => match ($state) {
'draft' => 'heroicon-o-pencil',
'reviewing' => 'heroicon-o-clock',
'published' => 'heroicon-o-check-circle',
default => 'heroicon-o-pencil',
})
->label('Link'),
IconColumn::make('External')
->icon(fn(string $state): string => match ($state) {
'draft' => 'heroicon-o-pencil',
'reviewing' => 'heroicon-o-clock',
'published' => 'heroicon-o-check-circle',
default => 'heroicon-o-pencil',
})
->label('Link'),
Tried with this code. Note - the External column does not exists. Worked in 2.x
16 replies