Skip to content

Commit 30e1e16

Browse files
committed
feat: add collapse method
1 parent 7589b66 commit 30e1e16

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
@@ -321,4 +321,16 @@ public function orthogonal(array|string $value): static
321321

322322
return $this;
323323
}
324+
325+
/**
326+
* @param boolean $value
327+
* @return $this
328+
* @see https://datatables.net/reference/option/searchPanes.collapse
329+
*/
330+
public function collapse(bool $value = true): static
331+
{
332+
$this->attributes['collapse'] = $value;
333+
334+
return $this;
335+
}
324336
}

0 commit comments

Comments
 (0)