PHP code example of akunbeben / fluid-actions

1. Go to this page and download the library: Download akunbeben/fluid-actions 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/ */

    

akunbeben / fluid-actions example snippets


use Akunbeben\FluidActions\FluidActionsPlugin;

$panel
    ->plugin(FluidActionsPlugin::make());

use Filament\Actions\Action;

Action::make('deactivate')
    ->color('danger')
    ->

Action::make('deactivate')
    ->color('danger')
    ->nfirmation(timeout: 3000);

use Filament\Actions\Action;

Action::make('delete')
    ->color('danger')
    ->holdToConfirm();

Action::make('delete')
    ->color('danger')
    ->holdToConfirm(duration: 3000);

use Filament\Actions\Action;
use Filament\Actions\ActionGroup;

ActionGroup::make([
    Action::make('edit')
        ->label('Edit'),

    Action::make('delete')
        ->label('Delete')
        ->color('danger')
        ->

Action::make('delete')
    ->seDropdown: false);

Action::make('delete')
    ->      closeDropdown: fn (): bool => auth()->user()->prefers_compact_actions,
    );

Action::make('delete')
    ->holdToConfirm(closeDropdown: false);
bash
composer analyse