2323#[Translatable(false )]
2424class Repeater extends FieldTypeBaseConfig implements FieldTypeConfig
2525{
26- use HasInnerField;
2726 use HasColumnsLayoutConfig;
27+ use HasInnerField;
2828
2929 public array $ fields = [];
3030
@@ -35,13 +35,17 @@ class Repeater extends FieldTypeBaseConfig implements FieldTypeConfig
3535 public bool $ cloneable = false ;
3636
3737 public bool $ collapsible = false ;
38+
3839 public bool $ defaultCollapsed = false ;
3940
4041 public bool $ reorderable = false ;
42+
4143 public bool $ reorderableWithButtons = false ;
44+
4245 public bool $ reorderableWithButtonsreorderableWithDragAndDrop = false ;
4346
4447 public ?int $ minItems = null ;
48+
4549 public ?int $ maxItems = null ;
4650
4751 public array $ gridLayout = [];
@@ -74,7 +78,6 @@ public function getFormSchema(): array
7478 ->placeholder ('e.g. title, key, etc. ' )
7579 ->helperText (str ('The label for each item in the repeater. Using **`Name`** in the **Fields** ' )->markdown ()->toHtmlString ()),
7680
77-
7881 Forms \Components \KeyValue::make ('gridLayout ' )
7982 ->keyLabel ('Column ' )
8083 ->keyLabel ('Width ' )
@@ -135,7 +138,7 @@ public function applyConfig(Forms\Components\Component $component): void
135138
136139 //
137140 $ component ->cloneable ($ this ->cloneable );
138-
141+
139142 $ component ->collapsible ($ this ->collapsible );
140143 $ component ->collapsed ($ this ->defaultCollapsed ?? false );
141144
0 commit comments