mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update 12-repeater.md
This commit is contained in:
@@ -437,7 +437,7 @@ Any fields that you use from `$state` should be `live()` if you wish to see the
|
||||
|
||||
## Numbering repeater items
|
||||
|
||||
Unlike Builders, items in the repeater don't have a number next to their label by default. You may enable this using the `itemNumbers(true)` method:
|
||||
You can add the repeater item's number next to its label using the `itemNumbers()` method:
|
||||
|
||||
```php
|
||||
use Filament\Forms\Components\Repeater;
|
||||
@@ -446,7 +446,7 @@ Repeater::make('members')
|
||||
->schema([
|
||||
// ...
|
||||
])
|
||||
->itemNumbers(true)
|
||||
->itemNumbers()
|
||||
```
|
||||
|
||||
## Simple repeaters with one field
|
||||
|
||||
Reference in New Issue
Block a user