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"),
                    ])
            ]);
    }
Was this page helpful?