PHP code example of manojkiran / filament-quick-view

1. Go to this page and download the library: Download manojkiran/filament-quick-view 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/ */

    

manojkiran / filament-quick-view example snippets


use ManojKiran\FilamentQuickView\Columns\QuickViewColumn;
use ManojKiran\FilamentQuickView\Infolists\QuickViewEntry;

// in a table
QuickViewColumn::make('server.hostname')
    ->label('Mailbox server')
    ->quickView(ServerResource::class);

// in an infolist
QuickViewEntry::make('server.hostname')
    ->quickView(ServerResource::class);

QuickViewColumn::make('server')->quickView(ServerResource::class);

QuickViewColumn::make('server.hostname')
    ->infolist(fn (Schema $schema) => $schema->components([
        Section::make('Server')->columns(2)->schema([
            TextEntry::make('hostname')->copyable()->icon(Heroicon::Server),
            TextEntry::make('state')->badge(),
        ]),
    ]));

->modifyQuickViewActionUsing(fn (Action $action) => $action->modalWidth(Width::FiveExtraLarge))