Skip to content

Commit a70c918

Browse files
committed
fix: show searchPanes by default when initialized
fixes the ff: - yajra/laravel-datatables#2475 (comment) - yajra/laravel-datatables-docs#74 (comment)
1 parent 31500e3 commit a70c918

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Html/SearchPane.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010

1111
class SearchPane extends Fluent
1212
{
13+
public function __construct($attributes = [])
14+
{
15+
parent::__construct(['show' => true] + $attributes);
16+
}
17+
1318
/**
1419
* @param array $options
1520
* @return static

0 commit comments

Comments
 (0)