Releases: yajra/laravel-datatables
Releases · yajra/laravel-datatables
v9.14.1
v9.14.0
Add support for SearchPanes extension
v9.12.0
v9.11.0
Export and Print Enhancement
This release includes the following changes:
- Enhance printing function to match what is displayed in UI.
- Enhance export function to match what is displayed in UI.
- Enhance datatables service stub.
- Address issue #310.
- Add option to set column as exportable and/or printable.
- Action and checkbox column is not exportable but printable by default.
v6.0.0 DataTable Service
v6.0.0 - DataTable Service implementation.
- Provides DataTable Service.
- Provides artisan command for creating a service.
php artisan datatables:make UsersDataTable
- Provides artisan command for creating a DataTable scope.
php artisan datatables:scope ActiveUserScope
- Provides built-in support for server-side buttons. (Formerly TableTools).
- Available buttons are
csv, excel, pdf, print
. - Built-in support for exporting to CSV, EXCEL and PDF using Laravel-Excel.
- Built-in printer friendly view or create your own by overriding
printPreview()
method.
- Available buttons are
- Change of namespace from
yajra\Datatables
toYajra\Datatables
. - Deprecated
of()
method when using DataTable service. - Automatic registration of required 3rd party providers.
Collection engine enhancement
- Collection engine enhancement.
- Add support for filtering compound key PR #146.
- Add support for ordering using compound key.
Add support for rendering view
addColumn
and editColumn
will now load view if it exists. All eloquent/data attributes will be passed as variables on view.
Usage:
Controller
return $datatables
->eloquent($builder)
->addColumn('action', 'admin.users.datatables.action')
->editColumn('active', 'admin.users.datatables.active')
View
/resources/views/admin/users/datatables/action.blade.php
{{ $first_name }} #{{ $id }}
/resources/views/admin/users/datatables/active.blade.php
@if($active)
active
@else
inactive
@endif