Add Custom Button to Repeater
Can i add custom button to repeater (top right) (left to delete button)
public function form(Form $form): Form
{
return $form
->schema([
Repeater::make('categorySteps')
->label('Kategori Adımları')
->schema([
TextInput::make('step_title')
->label('Adım Başlığı')
->disabled()
->required(),
])
->columns(2)
->reorderable()
->reorderableWithButtons()
->orderColumn('position')
->addable(false),
])
->columns(1)
->statePath('data');
}
public function form(Form $form): Form
{
return $form
->schema([
Repeater::make('categorySteps')
->label('Kategori Adımları')
->schema([
TextInput::make('step_title')
->label('Adım Başlığı')
->disabled()
->required(),
])
->columns(2)
->reorderable()
->reorderableWithButtons()
->orderColumn('position')
->addable(false),
])
->columns(1)
->statePath('data');
}
0 Replies