watheqalshowaiter/filament-sticky-table-header 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

watheqalshowaiter/filament-sticky-table-header

Composer 安装命令:

composer require watheqalshowaiter/filament-sticky-table-header

包简介

A Filament plugin that makes table headers stick when scrolling down for better UX.

README 文档

README

Package cover

Filament Sticky Table Header

Filament 3 Filament 4 Filament 5 Required Laravel Version Required PHP Version Latest Version on Packagist GitHub Tests For Filament Versions Action Status GitHub Code Style Action Status Total Downloads GitHub Stars StandWithPalestine ko-fi

A Filament plugin that makes table headers stick when scrolling down for better UX.

Demo

Demo

Installation

You can install the package via composer:

composer require watheqalshowaiter/filament-sticky-table-header

Usage

Register the plugin in your Panel provider:

use WatheqAlshowaiter\FilamentStickyTableHeader\StickyTableHeaderPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            // Other plugins...
            StickyTableHeaderPlugin::make(),
        ]);
}

You may need to run this command to publish assets

php artisan filament:assets

That's it! Your table headers will now stick to the top when scrolling.

Note on scroll to top

If you want to scroll to top on page change (next, previous, etc.), you can add this code inside your PanelProvider page for example AdminPanelProvider.

->plugins([
    StickyTableHeaderPlugin::make()
        ->shouldScrollToTopOnPageChanged()
])

You can configure shouldScrollToTopOnPageChange() like:

->shouldScrollToTopOnPageChanged(enabled: true, behavior: "smooth"); // or 'instant'

Features

✅ Supports Laravel versions: 13, 12, 11, and 10.

✅ Supports PHP versions: 8.5, 8.4, 8.3, 8.2, and 8.1.

✅ Supports Filament versions: 5.x, 4.x and 3.x.

✅ Fully tested with PHPUnit with 100% code coverage.

✅ CI verifies Laravel 10, 11, 12, and 13 across Filament 3.x, 4.x, and 5.x.

Laravel 13 requires PHP 8.3+ and a Laravel 13-compatible Filament 5 release.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

If you have any ideas or suggestions to improve it or fix bugs, your contribution is welcome.

I encourage you to look at Issues which are the most important features that need to be added.

If you have something different, submit an issue first to discuss or report a bug, then do a pull request.

Security Vulnerabilities

If you find any security vulnerabilities don't hesitate to contact me at watheqalshowaiter[at]gmail[dot]com to fix them.

Related Packages

  • Model Fields - Quickly retrieve required, nullable, and default fields for any Laravel model.
  • Backup Tables - Backup single or multiple database tables with ease.

Support this project

If this project helps you, consider supporting it on Ko-fi ☕.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 47.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 34
  • 点击次数: 19
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 34
  • Watchers: 1
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固