| Install | |
|---|---|
composer require ofthewildfire/filament-inline-edit-column |
|
| Latest Version: | v1.1.20 |
| PHP: | ^8.1 |
Replace any TextColumn with InlineEditColumn for instant click-to-edit functionality.
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(),
]);
}
Set the input type with ->type():
text (default)emailnumberurltelpasswordWorks with all standard Filament column features like sorting, searching, and toggling. The data saves automatically to your database when you press Enter.