PHP code example of archilex / filament-toggle-icon-column
1. Go to this page and download the library: Download archilex/filament-toggle-icon-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/ */
archilex / filament-toggle-icon-column example snippets
use Archilex\ToggleIconColumn\Columns\ToggleIconColumn;
return $table
->columns([
ToggleIconColumn::make('is_active'),
]);
use Archilex\ToggleIconColumn\Columns\ToggleIconColumn;
ToggleIconColumn::make('is_locked')
->onIcon('heroicon-s-lock-open')
->offIcon('heroicon-o-lock-closed')
use Archilex\ToggleIconColumn\Columns\ToggleIconColumn;
ToggleIconColumn::make('is_locked')
->size('xl')
use Archilex\ToggleIconColumn\Columns\ToggleIconColumn;
ToggleIconColumn::make('is_locked')
->onColor('primary')
->offColor('secondary')
use Archilex\ToggleIconColumn\Columns\ToggleIconColumn;
ToggleIconColumn::make('is_locked')
->hoverColor('success')