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