position of repeater

Is it possible to change the position order every time a repeater is created? I would like it to be displayed at the same time, horizontally and not vertically. Grid::make( [ 'default' => 1, 'sm' => 1, 'md' => 2, 'lg' => 2, 'xl' => 4, ] )->schema([ Repeater::make('personal_references')->label(('employees.personal_references')) ->schema([ TextInput::make('name')->label(('employees.reference_name')), TextInput::make('relationship')->label(('employees.reference_relationship')), TextInput::make('phone_number')->label(('employees.reference_phone')), ])->createItemButtonLabel(__('employees.add_another')) ->disableItemMovement() ->maxItems(4) ])
5 Replies
Thijmen
Thijmen2y ago
Add this to your repeater:
->columnSpan([
'default' => 1,
'sm' => 1,
'lg' => 2,
'xl' => 4,
]),
->columnSpan([
'default' => 1,
'sm' => 1,
'lg' => 2,
'xl' => 4,
]),
awcodes
awcodes2y ago
Filament
Fields - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
awcodes
awcodes2y ago
And make your repeater columnSpan(‘full’)
gustavo.dev
gustavo.dev2y ago
->grid([
'default' => 1,
'md' => 2,
'xl' => 3,
'2xl' => 4,
])
->grid([
'default' => 1,
'md' => 2,
'xl' => 3,
'2xl' => 4,
])
Ander
AnderOP2y ago
this worked for me, thanks you.
Want results from more Discord servers?
Add your server