定制 hotsed/filament-sticky-actions 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

hotsed/filament-sticky-actions

最新稳定版本:0.1

Composer 安装命令:

composer require hotsed/filament-sticky-actions

包简介

A Filament plugin to make table action columns sticky when scrolling horizontally

README 文档

README

filament-sticky-actions-art

FILAMENT 4.x Packagist Downloads

Sticky Actions

Keep your table actions visible while scrolling horizontally. Perfect for tables with many columns.

Features

  • 📌 Sticky Actions Column - Actions stay visible when scrolling horizontally
  • 🎨 Theme-Aware - Automatically detects and uses your theme's colors
  • 🌙 Dark Mode Support - Colors update when switching themes
  • 📊 Striped Rows Support - Correctly handles alternating row colors
  • 🔲 Scroll Shadow - Subtle shadow indicator when there's more content
  • Zero Configuration - Just call ->stickyActions() and it works

Compatibility

Package Version Filament Version
1.x 4.x
Table of Contents

Installation

composer require hotsed/filament-sticky-actions

After installing, publish the assets:

php artisan filament:assets

Usage

Enable sticky actions on any table by calling ->stickyActions():

use Filament\Tables\Table;

public function table(Table $table): Table
{
    return $table
        ->columns([
            // your columns...
        ])
        ->actions([
            // your actions...
        ])
        ->stickyActions(); // Enable sticky actions
}

You can also conditionally enable it:

->stickyActions(condition: $shouldStick)

How It Works

  1. Adds a stickyActions() macro to Filament's Table class
  2. When enabled, adds data-sticky-actions attribute to the table
  3. CSS makes the actions column sticky with position: sticky; right: 0
  4. JavaScript automatically detects background colors from your theme
  5. Blends semi-transparent striped row colors correctly
  6. Shadow indicator disappears when scrolled to the end

Requirements

  • PHP 8.1+
  • Laravel 10+
  • Filament 4.x

License

MIT License. See LICENSE for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固