1. Go to this page and download the library: Download asmit/resized-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/ */
asmit / resized-column example snippets
use Asmit\ResizedColumn\ResizedColumnPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ... other configuration
->plugins([
// ... other plugins
ResizedColumnPlugin::make()
->preserveOnDB() // Enable database storage (optional)
]);
}
use Asmit\ResizedColumn\HasResizableColumn;
class ListUsers extends ListRecords
{
use HasResizableColumn;
protected static string $resource = UserResource::class;
// Your existing table definition...
}