F
Filament11mo ago
xy

InfoList icon not showing when state is null

Infolists\Components\TextEntry::make('email')
->icon('heroicon-m-envelope')
->iconPosition(IconPosition::After);
Infolists\Components\TextEntry::make('email')
->icon('heroicon-m-envelope')
->iconPosition(IconPosition::After);
Any ideas?
4 Replies
Dennis Koch
Dennis Koch11mo ago
Is email a valid column? Or is that field empty? We only render non-empty fields
xy
xy11mo ago
It is a empty field used to display links with icons, is there a better component to use for this?
Dennis Koch
Dennis Koch11mo ago
You need to give it a state. This might work for Entries ->state('whatever')
xy
xy11mo ago
using getStateUsing worked, thanks