Skip to content

Commit

Permalink
#14: add phpdoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
glpzzz committed Sep 7, 2024
1 parent b23a412 commit 4c0aa27
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/ListView.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ public function beforeItem(Closure $value): self
return $new;
}

/**
* Set the HTML tag for the items wrapper.
*
* @param string|null $tag
* @return $this
*/
public function itemsWrapperTag(?string $tag): self
{
if ($tag === '') {
Expand All @@ -102,6 +108,12 @@ public function itemsWrapperTag(?string $tag): self
return $new;
}

/**
* Set the HTML attributes for the container of the items wrapper.
*
* @param array $values
* @return $this
*/
public function itemsWrapperAttributes(array $values): self
{
$new = clone $this;
Expand Down Expand Up @@ -136,6 +148,12 @@ public function itemView(string|Closure $value): self
return $new;
}

/**
* Set the HTML tag for the container of item view.
*
* @param string|null $tag
* @return $this
*/
public function itemViewTag(?string $tag): self
{
if ($tag === '') {
Expand Down

0 comments on commit 4c0aa27

Please sign in to comment.