Table Repeater Export

Is there anyway I can use filament export action in table repeater
1 Reply
Adnan Yalahow
Adnan Yalahow2mo ago
this is my code
->extraActions([
Forms\Components\Actions\Action::make('exportData')
->icon('heroicon-m-inbox-arrow-down')
->hidden(fn($operation) => $operation == 'create')
->action(function (array $arguments, TableRepeater $component, $state, $livewire) {
ExportAction::make()
->exporter(PackageExporter::class)
->modifyQueryUsing(fn (PackagedProducts $query) => $query->where('lcl_package_id', $livewire->record->id));
}),
])
->extraActions([
Forms\Components\Actions\Action::make('exportData')
->icon('heroicon-m-inbox-arrow-down')
->hidden(fn($operation) => $operation == 'create')
->action(function (array $arguments, TableRepeater $component, $state, $livewire) {
ExportAction::make()
->exporter(PackageExporter::class)
->modifyQueryUsing(fn (PackagedProducts $query) => $query->where('lcl_package_id', $livewire->record->id));
}),
])
no response no error no downloads what am i doing wrong