Skip to content

Is there a way to add an extra icon (or even a css class) to a repeater item? #10136

Closed Answered by markdynamo6
markdynamo6 asked this question in Help
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by markdynamo6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant