ofthewildfire / filament-inline-edit-column
Click-to-edit columns for Filament with automatic custom fields integration
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/ofthewildfire/filament-inline-edit-column
Requires
- php: ^8.1
- filament/filament: ^3.0
README
Quick Start
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'),
How it works
- Click any cell to start editing
- Enter to save your changes
- Escape or ✖ to cancel
Examples
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(), ]); }
Input Types
Set the input type with ->type():
text(default)emailnumberurltelpassword
That's it!
Works with all standard Filament column features like sorting, searching, and toggling. The data saves automatically to your database when you press Enter.