Replies: 1 comment
-
|
Same problem here. How to populate custom data into RepeatableEntry ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Panel builder
Package Version
v4
How can we help you?
In a RepeatableEntry, how can I access the data of a row from within a closure (for examle when using,
formatStateUsing())?$stategives me only the value of the current element, of course, as expected.To get access to the hole record, I tried
$item,$data,$record,$row... All of them yieldnull. I ended up preprocessing all the data in order to not need those formatting callbacks at all.There is no documentation on this on the RepeatableEntry page here: https://filamentphp.com/docs/4.x/infolists/repeatable-entry
Maybe I should add that I'm not working with Eloquent models here but with custom data, stored in arrays.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions