diff --git a/src/Html/SearchPane.php b/src/Html/SearchPane.php index 7589b6d..653820a 100644 --- a/src/Html/SearchPane.php +++ b/src/Html/SearchPane.php @@ -333,4 +333,16 @@ public function collapse(bool $value = true): static return $this; } + + /** + * @param boolean $value + * @return $this + * @see https://datatables.net/reference/option/searchPanes.initCollapsed + */ + public function initCollapsed(bool $value = false): static + { + $this->attributes['initCollapsed'] = $value; + + return $this; + } }