Is there a way to add an extra icon (or even a css class) to a repeater item? #10136
-
I'd like to add a visual cue about the type that each item is. |
Beta Was this translation helpful? Give feedback.
Answered by
markdynamo6
Oct 2, 2024
Replies: 1 comment
-
For anyone else wondering about this: Just Use a template for the itemLabel: Repeater::make('my-repeater')
->itemLabel(fn (array $state) => view('my-repeater-label', ['state' => $state])) You can then put whatever you want in the label. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
markdynamo6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For anyone else wondering about this: Just Use a template for the itemLabel:
You can then put whatever you want in the label.