Multiple headerActions on export plugins
It will be good idea to have fully custom multiple header action, i dont know if its already there, but I tried its not working
use AlperenErsoy\FilamentExport\Actions\FilamentExportHeaderAction;
->headerActions([
FilamentExportHeaderAction::make('Export')->defaultFormat('pdf')->label('Export PDF'),
FilamentExportHeaderAction::make('Export')->defaultFormat('xlsx')->label('Export Excel'),
FilamentExportHeaderAction::make('Export')->defaultFormat('csv')->label('Export CSV')
])
https://github.com/alperenersoy/filament-export/issues/66GitHub
Multiple
headerActions
· Issue #66 · alperenersoy/filament-exportIt will be good idea to have fully custom multiple header action, i dont know if its already there, but I tried its not working use AlperenErsoy\FilamentExport\Actions\FilamentExportHeaderAction; -...
21 Replies
I am confused, are you saying the parameters are not working under the ExportHeaderAction as per:
https://github.com/alperenersoy/filament-export#header-action
GitHub
GitHub - alperenersoy/filament-export: Customizable export and prin...
Customizable export and print functionality for Filament Admin Panel - GitHub - alperenersoy/filament-export: Customizable export and print functionality for Filament Admin Panel
actions need a unique name
you can customise the label each time with label()
but the names need to be unique
It is working, but the ability to have multiple
FilamentExportHeaderAction::make('Export')->defaultFormat('xlsx')->label('Export Excel'),
with different default format does not, I think the developer for this plugins is considering this as an enhancementThanks for pointing it out @Dan Harrin , @alperenersoy is considering this an enhancement

IF you change 'Export' to 'ExportCSV' and so on I believe it might work
I might try this out
Then ExportXlsx and so on
Thanks ill try this now
Hi @toeknee_iom I do have another question you wont mind if ill just post it here?
Feel free to ask
I use this environment-indicator
FilamentEnvironmentIndicator::configureUsing(function (FilamentEnvironmentIndicator $indicator) {
$indicator->showBadge = fn () => false;
$indicator->showBorder = fn () => true;
}, isImportant: true);
I dont know whats the provider I use for this on my AppServiceProvider
I already open an issue for this
Missing Documentation
https://github.com/pxlrbt/filament-environment-indicator/issues/7GitHub
Missing documentation · Issue #7 · pxlrbt/filament-environment-indi...
I tried to use it on my AppServiceProvider FilamentEnvironmentIndicator::configureUsing(function (FilamentEnvironmentIndicator $indicator) { $indicator->showBadge = fn () => false; $indicator...
1 second it should be fairly simple
What do you mean provider? I just installed it without issue?
Try to use this on your AppServiceProvider
https://github.com/pxlrbt/filament-environment-indicator#indicators
GitHub
GitHub - pxlrbt/filament-environment-indicator: Never confuse your ...
Never confuse your tabs with different Filament environments again. - GitHub - pxlrbt/filament-environment-indicator: Never confuse your tabs with different Filament environments again.
You mean to customise per environment?
OR do you mean with class to reference
I mean something like this
I cant use
FilamentEnvironmentIndicator
and its need to have something like use Filament\Facades\Filament;
(sorry im just trying to learn not really familiar of the terminology)
Your IDE should tell you which class to import
oh no ill try to check it out, or i might have miss something, I use sublime (as vscode is heavy on my device)
use pxlrbt\FilamentEnvironmentIndicator\FilamentEnvironmentIndicator;
thanks this what i need!!
my IDE dosent notify it
You need to look for IntelliSense for IDE's, we mainly use phpStorm here.
Thanks this one also work!

