Skip to content

Commit 2f70c3c

Browse files
authored
docs: add docs to display specific column index
1 parent d6bf8e2 commit 2f70c3c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: search-panes-starter.md

+13
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ public function html() : \Yajra\DataTables\Html\Builder
3434
],
3535
])
3636
->dom('PBfrtip');
37+
38+
// Displaying specific column indexes
39+
return $this->builder()
40+
->searchPanes(SearchPane::make()->columns([1, 2]))
41+
->addColumnDef([
42+
'targets' => '_all',
43+
'searchPanes' => [
44+
'show' => true,
45+
'vieTotal' => false,
46+
'viewCount' => false,
47+
],
48+
])
49+
->dom('PBfrtip');
3750

3851
// Alternatively set the dom with parameters
3952
return $this->builder()

0 commit comments

Comments
 (0)