Skip to content

feat: add search button action to table component#19813

Open
urufudev wants to merge 1 commit into
filamentphp:5.xfrom
urufudev:feature/search-action-button-tables
Open

feat: add search button action to table component#19813
urufudev wants to merge 1 commit into
filamentphp:5.xfrom
urufudev:feature/search-action-button-tables

Conversation

@urufudev
Copy link
Copy Markdown
Contributor

@urufudev urufudev commented May 4, 2026

Description

This PR adds a search button to the table component that allows users to manually trigger the search action. Currently, the table search relies solely on live/debounced input. This button provides an alternative interaction pattern for users who prefer explicit search submission or when live search is disabled.

The button is rendered next to the search input and respects the existing searchable() configuration. It uses the default Filament button styling to maintain visual consistency.

Visual changes

No visual breaking changes. The button appears inline with the existing search input using standard Filament UI components.

Default usage

Light theme Dark theme
->searchOnAction() image image

Without icon

Light theme Dark theme
->searchOnAction(icon: false) image image

Without label

Light theme Dark theme
->searchOnAction(label: false) image image

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 May 4, 2026
@urufudev urufudev changed the base branch from 4.x to 5.x May 4, 2026 00:25
@danharrin danharrin added enhancement New feature or request pending review labels May 5, 2026
@danharrin danharrin added this to the v4 milestone May 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