Skip to content

Commit 432477d

Browse files
committed
feat: add initCollapsed option setter
1 parent 7a4f8c7 commit 432477d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Html/SearchPane.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,4 +333,16 @@ public function collapse(bool $value = true): static
333333

334334
return $this;
335335
}
336+
337+
/**
338+
* @param boolean $value
339+
* @return $this
340+
* @see https://datatables.net/reference/option/searchPanes.initCollapsed
341+
*/
342+
public function initCollapsed(bool $value = false): static
343+
{
344+
$this->attributes['initCollapsed'] = $value;
345+
346+
return $this;
347+
}
336348
}

0 commit comments

Comments
 (0)