shibomb/filament-multi-components-column
最新稳定版本:v1.0.0
Composer 安装命令:
composer require shibomb/filament-multi-components-column
包简介
A Simple Mutli Components Column for Filament Table
README 文档
README
You can use Filament Tables Stack.
Filament MultiComponents Column
A Simple Mutli Components Column for Filament Table.
Filament Admin Panel
This package is tailored for Filament Admin Panel.
Make sure you have installed the admin panel before you continue with the installation. You can check the documentation here
Supported Versions
PHP: 8.0
Laravel: 8 & 9
Installation
You can install the package via composer:
composer require shibomb/filament-multi-components-column php artisan filament-multi-components-column:install
Placing components horizontally in a single column
use Shibomb\FilamentMultiComponentColumn\Components\MultiComponentsColumn; class FooBarResource extends Resource { : public static function table(Table $table): Table { : return $table ->columns([ MultiComponentsColumn::make('foo') ->components([ Tables\Columns\TextColumn::make('foo'), Tables\Columns\TextColumn::make('bar') ]), :
Placing components verticaly in a single column
MultiComponentsColumn::make('foo') ->components([ Tables\Columns\TextColumn::make('foo'), Tables\Columns\TextColumn::make('bar') ]) ->verticaly(),
Override ClassNames
MultiComponentsColumn::make('foo') ->components([ Tables\Columns\TextColumn::make('foo'), Tables\Columns\TextColumn::make('bar') ]) ->classNames('your-original-class'),
Append ClassNames
MultiComponentsColumn::make('foo') ->components([ Tables\Columns\TextColumn::make('foo'), Tables\Columns\TextColumn::make('bar') ]) ->appendClassNames('rounded-lg bg-primary-500'),
Note: If calling verticaly(), appendClassNames() must be called after verticaly().
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-02-07
