定制 drafolin/filament-collapse 二次开发

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

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

drafolin/filament-collapse

Composer 安装命令:

composer require drafolin/filament-collapse

包简介

This plugins aims to collapse the space between multiple fields, in the same way as ToggleButtons->grouped()

README 文档

README

Latest Version on Packagist Total Downloads

Filament Collapse

The Collapse Group field is a layout field that collapses space between components. It is useful for grouping related fields together, such as phone numbers or start and end dates.

Collapse Group

Installation

You can install the package via composer:

composer require drafolin/filament-collapse

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-collapse-views"

Usage

<?php
use Drafolin\FilamentCollapse\FilamentCollapse;

public function form(Form $form)
{
    return form
        ->schema([
            FilamentCollapse::make([
                // Add fields here. Ideally, these fields should be related.
                // For now, it's only been tested with TextInput fields, and fields that inherit from it.
                TextInput::make('first_name')
                    ->label('First Name'), // Labels are transformed into placeholders.
                TextInput::make('last_name')
                    ->label('Last Name'),
            ])
            ->label('Collapse Group'), // This field is a regular field, so it also supports base filament properties.
        ]);
}

Changelog

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

Contributing

Everyone is welcome to contribute to this project. To do so, simply open an issue or a pull request.

Credits

License

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

统计信息

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

GitHub 信息

  • Stars: 12
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固