You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Repeater with, among other form fields, an IconEntry.
This IconEntry shall get a color which is dependent on a different field of the row data:
Repeater::make('target-list')->schema([
...
IconEntry::make('db-check')
->icon(Heroicon::CircleStack)
->hint(fn($state) => $state) // The field 'db-check' holds the hint, this works.
->color(fn(??) => ), // How can I access the row's field 'db-check-color' here?
...
])
What do I need to put in there to access other fields of the same row? It's not $item or $record, because they both yield null...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Panel builder
Package Version
v4
How can we help you?
I have a
Repeaterwith, among other form fields, anIconEntry.This
IconEntryshall get a color which is dependent on a different field of the row data:What do I need to put in there to access other fields of the same row? It's not
$itemor$record, because they both yieldnull...Beta Was this translation helpful? Give feedback.
All reactions