Skip to content

Commit 386b484

Browse files
authored
Merge pull request #207 from yajra/dtsp-initCollapse
feat: add initCollapsed option setter
2 parents 7a4f8c7 + 432477d commit 386b484

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)