File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,27 @@ public function html() : \Yajra\DataTables\Html\Builder
2525 // Setting the dom string directly
2626 return $this->builder()
2727 ->searchPanes(SearchPane::make())
28+ ->addColumnDef([
29+ 'targets' => '_all',
30+ 'searchPanes' => [
31+ 'show' => true,
32+ 'vieTotal' => false,
33+ 'viewCount' => false,
34+ ],
35+ ])
2836 ->dom('PBfrtip');
2937
3038 // Alternatively set the dom with parameters
3139 return $this->builder()
3240 ->searchPanes(SearchPane::make())
41+ ->addColumnDef([
42+ 'targets' => '_all',
43+ 'searchPanes' => [
44+ 'show' => true,
45+ 'vieTotal' => false,
46+ 'viewCount' => false,
47+ ],
48+ ])
3349 ->parameters([
3450 'dom' => 'PBfrtip'
3551 ]);
@@ -47,6 +63,14 @@ public function html() : \Yajra\DataTables\Html\Builder
4763 // Adding via class
4864 return $this->builder()
4965 ->searchPanes(SearchPane::make())
66+ ->addColumnDef([
67+ 'targets' => '_all',
68+ 'searchPanes' => [
69+ 'show' => true,
70+ 'vieTotal' => false,
71+ 'viewCount' => false,
72+ ],
73+ ])
5074 ->buttons([
5175 \Yajra\DataTables\Html\Button::make('searchPanes')
5276 // other buttons...
@@ -55,6 +79,14 @@ public function html() : \Yajra\DataTables\Html\Builder
5579 // Alternatively set the buttons with options
5680 return $this->builder()
5781 ->searchPanes(SearchPane::make())
82+ ->addColumnDef([
83+ 'targets' => '_all',
84+ 'searchPanes' => [
85+ 'show' => true,
86+ 'vieTotal' => false,
87+ 'viewCount' => false,
88+ ],
89+ ])
5890 ->parameters([
5991 'buttons' => ['searchPanes', /*other buttons...*/]
6092 ]);
You can’t perform that action at this time.
0 commit comments