gboquizosanchez/filament-scroll-to-top 问题修复 & 功能扩展

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

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

gboquizosanchez/filament-scroll-to-top

Composer 安装命令:

composer require gboquizosanchez/filament-scroll-to-top

包简介

Auto scroll to top on page change for Filament panels

README 文档

README

Scroll to Top

gboquizosanchez/filament-scroll-to-top

Scroll to top on pagination change for Filament panels

Latest Stable Version Total Downloads PHP License: MIT Tests

Automatically scroll the page back to the top whenever a user navigates to a new table page in Filament 4 and 5.

Overview

When a user changes pages in a Filament table, the scroll position stays where it was — forcing them to manually scroll back up. This plugin adds a smooth scroll-to-top behaviour on every pagination change, with zero configuration.

Version compatibility

Plugin Filament PHP
1.x 4.x – 5.x ^8.2

📦 Installation

composer require gboquizosanchez/filament-scroll-to-top

Register the plugin in your panel provider (app/Providers/Filament/AdminPanelProvider.php):

use Boquizo\FilamentScrollToTop\ScrollToTopPlugin;

->plugins([
    ScrollToTopPlugin::make(),
])

🔧 Usage

Add the ScrollToTop trait to any ListRecords page or RelationManager that should scroll on pagination:

use Boquizo\FilamentScrollToTop\Traits\ScrollToTop;
use Filament\Resources\Pages\ListRecords;

final class ListGames extends ListRecords
{
    use ScrollToTop;

    // ...
}
use Boquizo\FilamentScrollToTop\Traits\ScrollToTop;
use Filament\Resources\RelationManagers\RelationManager;

final class GamesRelationManager extends RelationManager
{
    use ScrollToTop;

    // ...
}

That's it. No further configuration needed.

🧪 Testing

composer test

Contributing

Contributions are welcome!

  • 🐛 Report bugs via GitHub Issues
  • 💡 Suggest features or improvements
  • 🔧 Submit pull requests with fixes or enhancements

Credits

📄 License

This package is open-source software licensed under the MIT License.

统计信息

  • 总下载量: 237
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固