Repeater without reordering buttons
Hi i'm using Repeater v3, and i'm following this: https://filamentphp.com/docs/3.x/forms/fields/repeater#reordering-items
But the default button for reordering items don't appear on top left of the repeaters....why?
Below my code:
But the default button for reordering items don't appear on top left of the repeaters....why?
Below my code:
Section::make()
->schema([
Repeater::make('sections')
->label('Sections')
->relationship()
->schema([
TextInput::make('name')->required(),
TextInput::make('note'),
Section::make()
->schema([
Repeater::make('products')
->label('Products')
->relationship()
->schema([
TextInput::make('name')->required(),
TextInput::make('description'),
TextInput::make('price')->required(),
])
->columns(3)
->collapsible()
->collapsed()
->cloneable()
->itemLabel(fn (array $state): ?string => $state['name'] ?? null),
])
])
->columns(2)
->collapsible()
->collapsed()
->itemLabel(fn (array $state): ?string => $state['name'] ?? null),
])->compact() Section::make()
->schema([
Repeater::make('sections')
->label('Sections')
->relationship()
->schema([
TextInput::make('name')->required(),
TextInput::make('note'),
Section::make()
->schema([
Repeater::make('products')
->label('Products')
->relationship()
->schema([
TextInput::make('name')->required(),
TextInput::make('description'),
TextInput::make('price')->required(),
])
->columns(3)
->collapsible()
->collapsed()
->cloneable()
->itemLabel(fn (array $state): ?string => $state['name'] ?? null),
])
])
->columns(2)
->collapsible()
->collapsed()
->itemLabel(fn (array $state): ?string => $state['name'] ?? null),
])->compact()