F
Filament12mo ago
Ahmad

making an edit action in view

how can i make ->headeractions that there is a a button that u can change in view
public static function form(Form $form): Form
{
return $form
->schema([
Section::make()
->icon('heroicon-m-building-storefront')
->description('this is a test')
->collapsible()
->columns(2)
->headerActions([
Action::make('edit')
->action(function () {
// ...
}),
])
->schema([
TextInput::make('debiteurnaam')
->required()
->maxLength(50),
TextInput::make("Bedrijf_user")
->required(),
TextInput::make("Kvk"),
TextInput::make("Btw"),
TextInput::make("Db"),
])
]);
}
public static function form(Form $form): Form
{
return $form
->schema([
Section::make()
->icon('heroicon-m-building-storefront')
->description('this is a test')
->collapsible()
->columns(2)
->headerActions([
Action::make('edit')
->action(function () {
// ...
}),
])
->schema([
TextInput::make('debiteurnaam')
->required()
->maxLength(50),
TextInput::make("Bedrijf_user")
->required(),
TextInput::make("Kvk"),
TextInput::make("Btw"),
TextInput::make("Db"),
])
]);
}
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server