ページ · Laravilt
IconColumn
Display Lucide icons, optionally mapped from boolean or status values.
Icons use Lucide names in PascalCase (for example CheckCircle).
php
Boolean mode
php
Without custom icons, boolean mode uses CheckCircle and XCircle. BooleanColumn is a shortcut for an IconColumn in boolean mode.
Dynamic icons
Closures can receive $state and $record:
php
API reference
| Method | Description |
|---|---|
icon() | Icon name or closure |
color() | Icon color or closure |
iconSize() / size() | Icon size |
boolean() | Boolean mode |
trueIcon(), falseIcon() | Boolean icons |
trueColor(), falseColor() | Boolean colors |
wrap() | Wrap multiple icons |