Introduction
Icon entries render an icon representing the state of the entry:Customizing the color
You may change the color of the icon, using thecolor() method:
color(), you can customize the color based on the state of the entry:
Customizing the size
The default icon size isIconSize::Large, but you may customize the size to be either IconSize::ExtraSmall, IconSize::Small, IconSize::Medium, IconSize::ExtraLarge or IconSize::TwoExtraLarge:
Handling booleans
Icon entries can display a check or “X” icon based on the state of the entry, either true or false, using theboolean() method:
If this attribute in the model class is already cast as aOptionally, you may pass a boolean value to control if the icon should be boolean or not:boolorboolean, Filament is able to detect this, and you do not need to useboolean()manually.