From 432477d75798c477021485137d828bacd0915820 Mon Sep 17 00:00:00 2001 From: Arjay Angeles Date: Mon, 2 Oct 2023 18:27:33 +0800 Subject: [PATCH] feat: add initCollapsed option setter --- src/Html/SearchPane.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; + } }