© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
2 replies
Nhật Hòa

Hidden create & cancel button, connect between Livewire component and action

I am making a table with headerActions() above in a Resource:
 public static function table(Table $table): Table
    {
        return $table
            ->headerActions([
                Actions\Action::make('file')->label('Add Document')->form([
                Livewire::make(AddDocumentPopup::class)
                ])
                ->action(function ($data) {
                    //
                })
            ])
            ->columns([
               //...
            ])
    }
 public static function table(Table $table): Table
    {
        return $table
            ->headerActions([
                Actions\Action::make('file')->label('Add Document')->form([
                Livewire::make(AddDocumentPopup::class)
                ])
                ->action(function ($data) {
                    //
                })
            ])
            ->columns([
               //...
            ])
    }

AddDocumentPopup is my livewire class for some my personal design, it's view simple contain an <input type='file'/>, so i have this image.

i want to allow user to select file, then perform some operations on those files and save this file. But i dont know how Livewire return data for me...
there are 2 way for me:
- livewire return data and work with this file in ->action()... => Button 'Create' & 'Cancel' can work.
- work only with livewire => i have to remove those button, and know how to turn off this popup screen.
can anyone help me pls...
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

Create and createranother cancel button
FilamentFFilament / ❓┊help
3y ago
Hidden save and cancel button in form wizzard?
FilamentFFilament / ❓┊help
2y ago
Action button has no background in Livewire component
FilamentFFilament / ❓┊help
3y ago