PHP code example of shibomb / filament-multi-components-column
1. Go to this page and download the library: Download shibomb/filament-multi-components-column library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
shibomb / filament-multi-components-column example snippets
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'),