F
Filament2y 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 Koch2y ago
Is email a valid column? Or is that field empty? We only render non-empty fields
xy
xyOP2y ago
It is a empty field used to display links with icons, is there a better component to use for this?
Dennis Koch
Dennis Koch2y ago
You need to give it a state. This might work for Entries ->state('whatever')
xy
xyOP2y ago
using getStateUsing worked, thanks

Did you find this page helpful?