Skip to content

Conversation

@billmn
Copy link
Contributor

@billmn billmn commented Oct 29, 2025

Description

Added the includeVisibleColumns() method to the Export actions, enabling exports to automatically match the columns visible in the table.

ExportAction::make()
    ->exporter(VehicleExporter::class)
    ->includeVisibleColumns(),

ExportBulkAction::make()
    ->exporter(VehicleExporter::class)
    ->includeVisibleColumns(),

When columnMapping is enabled, visible columns are checked by default (in this example "created_at" column is hidden).

check-columns

When columnMapping is disabled, restricts the export to only the visible columns.

ExportAction::make()
    ->exporter(VehicleExporter::class)
    ->includeVisibleColumns()
    ->columnMapping(false),

If the implementation looks good, I can follow up with an update to the documentation to reflect the new behavior.

Visual changes

None

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@github-project-automation github-project-automation bot moved this to Todo in Roadmap Oct 29, 2025
@danharrin danharrin added enhancement New feature or request pending review labels Oct 29, 2025
@danharrin danharrin added this to the v4 milestone Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request pending review

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants