1. Go to this page and download the library: Download shreejan/actionable-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/ */
shreejan / actionable-column example snippets
use Shreejan\ActionableColumn\Tables\Columns\ActionableColumn;
use Filament\Actions\Action;
use Filament\Forms\Components\Select;
use Filament\Support\Icons\Heroicon;
ActionableColumn::make('status')
->badge() // Display as badge (or remove for simple text)
->color('success') // Badge/text color: success, danger, warning, info, primary
->actionIcon(Heroicon::PencilSquare) // Action button icon (Heroicon enum or string)
->actionIconColor('warning') // Icon color (independent from badge color)
->clickableColumn() // Make entire column clickable (or remove for button-only)
->tapAction(
Action::make('changeStatus') // Any Filament Action: edit, delete, approve, etc.
->label('Change Status')
->tooltip('Click to change status')
->schema([
Select::make('status')
->options([
'pending' => 'Pending',
'approved' => 'Approved',
'rejected' => 'Rejected',
])
->
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.