sanzgrapher/filament-draggable-modal
Composer 安装命令:
composer require sanzgrapher/filament-draggable-modal
包简介
Make Filament modals draggable.
README 文档
README
A simple yet powerful Filament v5 plugin to make all your modals draggable. Improve your users' flow by allowing them to move modals out of the way to see the content underneath.
Features
- Zero Configuration: Just register the plugin and it works.
- Filament v5 Ready: Designed specifically for the latest Filament version.
- Smooth Dragging: Uses fixed positioning and handles CSS transforms to prevent jumping.
- Smart Handle Detection: Draggable by the modal header, but buttons and inputs remain clickable.
Installation
You can install the package via composer:
composer require sanzgrapher/filament-draggable-modal
Usage
Register the plugin in your Panel Provider (usually AdminPanelProvider.php):
use Sanzgrapher\DraggableModal\DraggableModalPlugin; public function panel(Panel $panel): Panel { return $panel // ... other configuration ->plugin(DraggableModalPlugin::make()); }
Troubleshooting
If the modals are not draggable after installation, ensure you have published the assets:
php artisan filament:assets
Security
If you discover any security-related issues, please email narayandhakal443@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 6.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 18
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-21
