Skip to content

feat: ExportColumn visibility#20004

Open
billmn wants to merge 1 commit into
filamentphp:4.xfrom
billmn:export-column-visibility
Open

feat: ExportColumn visibility#20004
billmn wants to merge 1 commit into
filamentphp:4.xfrom
billmn:export-column-visibility

Conversation

@billmn
Copy link
Copy Markdown
Contributor

@billmn billmn commented Jun 4, 2026

Description

Introduces the ability to set an ExportColumn as visible or hidden.

Example:

ExportColumn::make('price')
    ->visible(fn (): bool => auth()->user()->can('seePrice')),

ExportColumn::make('price')
    ->hidden(fn (): bool => auth()->user()->cannot('seePrice')),

It could also be useful add a method on ExportAction and ExportBulkAction (eg. showVisibleTableColumnsByDefault()) that automatically mirrors the visibility conditions already defined on the corresponding TableColumn, avoiding the need to repeat the same visibility logic in both places.

This would be similar to how enableVisibleTableColumnsByDefault() already syncs which columns are enabled by default based on table column visibility.

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 Jun 4, 2026
@danharrin danharrin added enhancement New feature or request pending review labels Jun 5, 2026
@danharrin danharrin added this to the v4 milestone Jun 5, 2026
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