watheqalshowaiter/filament-sticky-table-header
filament:assets publishing, which is a standard Filament workflow. No custom build steps or complex dependencies.panel() in PanelProvider, with optional scroll-to-top configuration.Filament Version Alignment:
Custom Table Styling:
Scroll-to-Top Behavior:
CI/CD Impact:
filament:assets publishing, which may need inclusion in deployment pipelines.filament:assets to CI/CD asset compilation steps.Long-Term Maintenance:
position: sticky overrides).composer require watheqalshowaiter/filament-sticky-table-header
php artisan filament:assets
PanelProvider:
StickyTableHeaderPlugin::make()
->shouldScrollToTopOnPageChanged(enabled: true, behavior: "smooth")
Table with custom classes, ensure the package’s CSS selectors (filament-tables__table) aren’t overridden.position: sticky), so test in target browsers (e.g., Chrome, Firefox, Safari).dependabot to track PHP/Laravel version support.filament:assets after updates to ensure CSS/JS is republished.PanelProvider to avoid per-resource inconsistencies.filament:assets was run and no CSS conflicts.## Sticky Table Headers
- Enabled globally for all tables.
- Scroll-to-top: Enabled (smooth behavior).
- **Note**: Custom table styles may override sticky positioning.
| Failure Scenario | Impact | Mitigation |
|---|---|---|
| CSS conflict with custom styles | Sticky headers break or misalign | Audit existing CSS; use !important sparingly. |
| JavaScript error in scroll-to-top | Broken pagination navigation | Wrap scroll logic in error handling. |
| Filament version incompatibility | Plugin stops working | Pin to a compatible package version. |
| Asset pipeline failure | Styling not applied | Add filament:assets to CI/CD health checks. |
| Mobile layout issues | Headers cut off or overlap | Test on target devices; adjust CSS media queries. |
PanelProvider:
// Comment out or remove:
// StickyTableHeaderPlugin::make()
filament:assets if needed.How can I help you explore Laravel packages today?