© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
Noxo

Section - headerEnd

Is there a way to place an action to the headerEnd slot of Section?


I tried to do it like this, but it didn't work. Maybe there is another way?

Forms\Components\Section::make()
    ->heading('Heading')
    ->description('Description')
    ->extraAlpineAttributes([
        'headerEnd' => fn () => Forms\Components\Actions\Action::make('active')
            ->action(function () {
                //
            }),
    ], merge: true)
    ->schema([
        Forms\Components\TextInput::make('price')
            ->minValue(0)
            ->maxValue(config('constants.MYSQL_INT_UNSIGNED_MAX'))
            ->numeric()
            ->suffix(config('app.currency'))
            ->required(),
    ])
    ->compact()
    ->columnSpan(1),
Forms\Components\Section::make()
    ->heading('Heading')
    ->description('Description')
    ->extraAlpineAttributes([
        'headerEnd' => fn () => Forms\Components\Actions\Action::make('active')
            ->action(function () {
                //
            }),
    ], merge: true)
    ->schema([
        Forms\Components\TextInput::make('price')
            ->minValue(0)
            ->maxValue(config('constants.MYSQL_INT_UNSIGNED_MAX'))
            ->numeric()
            ->suffix(config('app.currency'))
            ->required(),
    ])
    ->compact()
    ->columnSpan(1),
Screenshot_2023-09-18_at_08.40.09.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Preview Section
FilamentFFilament / ❓┊help
11mo ago
Section Collapse
FilamentFFilament / ❓┊help
3y ago
section footer action to submit the section schema
FilamentFFilament / ❓┊help
2y ago
Section disabled() / notClicable() ? ^^
FilamentFFilament / ❓┊help
12mo ago