⚡ PowerGrid generates modern, powerful and easy-to-customize data tables using Laravel Livewire.
MIT License
Published by luanfreitasdev about 3 years ago
Published by luanfreitasdev about 3 years ago
⚡️ PowerGrid 1.3 Released! ⚡️
php artisan powergrid:demo
👀 Check it out!
Published by luanfreitasdev about 3 years ago
Published by luanfreitasdev about 3 years ago
public function actions(): array
{
$canDelete = false;
return [
Button::add('destroy')
->caption(__('Delete'))
->caption(__('Delete'))
**->can($canDelete)**
->class('bg-red-500 text-white')
->route('product.destroy', ['product' => 'id'])
->method('delete'),
//...
];
}
https://livewire-powergrid.docsforge.com/#action-and-header-methods
Published by luanfreitasdev about 3 years ago
public function actions(): array
{
$canDelete = false;
return [
Button::add('destroy')
->caption(__('Delete'))
->caption(__('Delete'))
**->can($canDelete)**
->class('bg-red-500 text-white')
->route('product.destroy', ['product' => 'id'])
->method('delete'),
//...
];
}
https://livewire-powergrid.docsforge.com/#action-and-header-methods
Published by luanfreitasdev about 3 years ago
Layout correction
Back-end fix
Display html on action - issues 38
News
Published by luanfreitasdev about 3 years ago
Published by luanfreitasdev about 3 years ago
Published by luanfreitasdev over 3 years ago
added event method inside action method
https://livewire-powergrid.docsforge.com/main/getting-started/#2-event-listeners
Published by luanfreitasdev over 3 years ago
Published by luanfreitasdev over 3 years ago
Published by luanfreitasdev over 3 years ago
Published by luanfreitasdev over 3 years ago
What has changed ?
Summary: an addColumns method has been added where all the configuration of columns (addColumn) will be previously inside dataSource.
The dataSource method receives only the model call without get ()
to use the Model feature and with get it is automatically understood as using the Collection.
Different from the previous v1.0.2? Some things have changed but it is fully compatible. We advise you to upgrade to the new model.
What's new ?
->showExportOption ('download', ['excel', 'csv'])
within the setUp methodWhat improvements:
Command updates: creation in a specific directory and showing the component name in the console.
Documentation is now at http://livewire-powergrid.docsforge.com/
Published by luanfreitasdev over 3 years ago
adds spout support for exporting xlsx and csv files to large numbers of records.
In the tests performed it was possible to export 2 million records being separated by the limitation of each sheet in a single file.