Skip to content

Commit

Permalink
feat: add initCollapsed option setter
Browse files Browse the repository at this point in the history
  • Loading branch information
yajra committed Oct 2, 2023
1 parent 7a4f8c7 commit 432477d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Html/SearchPane.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 432477d

Please sign in to comment.