Replies: 1 comment
-
Hey, i looked into Laravel 4.x docs and there are more utilities. But looking into https://filamentphp.com/docs/4.x/forms/repeater#adding-a-label-to-repeater-items-based-on-their-content table, I noticed "item" param. And it worked in ->collapsed() callback: PS: Then, I discarded all the changes and went back to 3.x just to confirm it also works even while not stated in the 3.x docs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have
Order
and it has many associatedItems
and I use a Repeater to edit or addItems
to anOrder
Currently, when creating a Form, the
->collapsed()
callback on aRepeater
component only receives the full state array representing all items, limiting the ability to control collapse behavior per item.In contrast, other callbacks like
->itemLabel()
receive the state of the current item, allowing for per-item customization.Allowing
->collapsed()
to receive the single item state would enable developers to dynamically collapse or expand each repeater item based on its own data, for example, expanding tasks only if theirdone
field isfalse
.This feature would provide finer-grained control over the UI and improve the user experience when working with repeaters containing multiple items.
May be related: #5273
Beta Was this translation helpful? Give feedback.
All reactions