File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 3535## Quick Example:
3636``` php
3737Route::get('datatable', function(RolesDataTable $dataTable){
38- return $dataTable->before(function (Yajra\Datatables\Engines\BaseEngine $dataTable) {
38+ return $dataTable->before(function (\ Yajra\Datatables\Engines\BaseEngine $dataTable) {
3939 return $dataTable->addColumn('test', 'added inside controller');
40- })->response(function (Illuminate\Support\Collection $response) {
40+ })->response(function (\ Illuminate\Support\Collection $response) {
4141 $response['test'] = 'Append Data';
4242
4343 return $response;
44+ })->withHtml(function(\Yajra\Datatables\Html\Builder $builder) {
45+ $builder->columns(['id', 'name', 'etc...']);
4446 })->render('path.to.view');
4547});
4648```
You can’t perform that action at this time.
0 commit comments