You can use Filament Tables Stack.
A Simple Mutli Components Column for Filament Table.
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
PHP: 8.0
Laravel: 8
& 9
You can install the package via composer:
composer require shibomb/filament-multi-components-column
php artisan filament-multi-components-column:install
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')
]),
:
MultiComponentsColumn::make('foo')
->components([
Tables\Columns\TextColumn::make('foo'),
Tables\Columns\TextColumn::make('bar')
])
->verticaly(),
MultiComponentsColumn::make('foo')
->components([
Tables\Columns\TextColumn::make('foo'),
Tables\Columns\TextColumn::make('bar')
])
->classNames('your-original-class'),
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()
.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.