PHP code example of ofthewildfire / filament-inline-edit-column
1. Go to this page and download the library: Download ofthewildfire/filament-inline-edit-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/ */
ofthewildfire / filament-inline-edit-column example snippets
use OfTheWildfire\FilamentInlineEditColumn\Filament\Table\Columns\InlineEditColumn;
// Before
TextColumn::make('name'),
// After
InlineEditColumn::make('name'),
public static function table(Table $table): Table
{
return $table->columns([
// Basic text editing
InlineEditColumn::make('name'),
// Email field
InlineEditColumn::make('email')->type('email'),
// Numbers
InlineEditColumn::make('price')->type('number'),
// With all the usual Filament options
InlineEditColumn::make('title')
->searchable()
->sortable()
->toggleable(),
]);
}