| @@ 50-65 (lines=16) @@ | ||
| 47 | * |
|
| 48 | * @return \Yajra\Datatables\Html\Builder |
|
| 49 | */ |
|
| 50 | public function html() |
|
| 51 | { |
|
| 52 | return $this->builder() |
|
| 53 | ->columns($this->getColumns()) |
|
| 54 | ->ajax('') |
|
| 55 | ->addAction(['width' => '80px']) |
|
| 56 | ->parameters([ |
|
| 57 | 'order' => [[0, 'desc']], |
|
| 58 | 'buttons' => [ |
|
| 59 | 'export', |
|
| 60 | 'print', |
|
| 61 | 'reset', |
|
| 62 | 'reload', |
|
| 63 | ], |
|
| 64 | ]); |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * Get columns. |
|
| @@ 39-59 (lines=21) @@ | ||
| 36 | /** |
|
| 37 | * @return \Yajra\Datatables\Html\Builder |
|
| 38 | */ |
|
| 39 | public function html() |
|
| 40 | { |
|
| 41 | return $this |
|
| 42 | ->builder() |
|
| 43 | ->columns($this->getColumns()) |
|
| 44 | ->addAction(['width' => '80px']) |
|
| 45 | ->parameters([ |
|
| 46 | 'stateSave' => true, |
|
| 47 | 'order' => [[0, 'desc']], |
|
| 48 | 'buttons' => [ |
|
| 49 | // [ |
|
| 50 | // 'extend' => 'create', |
|
| 51 | // 'text' => '<i class="fa fa-plus"></i> ' . trans('cms::module.table.buttons.create'), |
|
| 52 | // ], |
|
| 53 | 'export', |
|
| 54 | 'print', |
|
| 55 | 'reset', |
|
| 56 | 'reload', |
|
| 57 | ], |
|
| 58 | ]); |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * @return array |
|