Skip to content

feat: show loading spinner on table column sort icon - #19281

Merged
danharrin merged 7 commits into
filamentphp:4.xfrom
leek:feat/table-sort-loading-indicator
Feb 28, 2026
Merged

feat: show loading spinner on table column sort icon#19281
danharrin merged 7 commits into
filamentphp:4.xfrom
leek:feat/table-sort-loading-indicator

Conversation

@leek

@leek leek commented Feb 16, 2026

Copy link
Copy Markdown
Contributor
image

Summary

  • Replaces the sort direction chevron icon with a spinning loading indicator while the sortTable Livewire request is in flight
  • Scoped per-column via wire:target="sortTable('{columnName}')" so only the clicked column shows the spinner
  • Follows the existing Filament loading indicator pattern used in buttons, badges, links, and icon buttons (wire:loading / wire:loading.remove with configurable delay)

Test plan

  • Click a sortable column header — the chevron icon should be replaced by a spinner until the response completes
  • Verify only the clicked column shows the spinner, not all sortable columns
  • Verify the correct sort direction icon (up/down) returns after loading
  • Test in both light and dark modes
  • Test with different column alignments (start, center, end)

leek and others added 3 commits February 16, 2026 17:29
Replace the sort direction icon with a spinning loading indicator while
the sort request is in flight, scoped to the specific column clicked.
@danharrin danharrin added this to the v4 milestone Feb 19, 2026
@danharrin danharrin added enhancement New feature or request pending review labels Feb 19, 2026
@Youssef-Amjad

Copy link
Copy Markdown

Nice ✨

@danharrin
danharrin merged commit c225ab3 into filamentphp:4.x Feb 28, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants