Skip to content

Commit

Permalink
#211: phpdoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
glpzzz committed Sep 9, 2024
1 parent b462c78 commit da4a644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ListView.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,21 +167,21 @@ public function itemViewTag(?string $tag): self

/**
* Return new instance with the HTML attributes for the container of item view.
*
* @param array|Closure $values Attribute values indexed by attribute names.
* If this property is specified as a function, it must return an array of attributes and have the following
* signature:
*
* ```php
* function ($data, $key, $index, $widget)
* ```
*
* Also, each attribute value can be a function too, with the same signature as in:
*
* ```php
* [
* 'class' => static fn($data, $key, $index, $widget) => "custom-class-{$data['id']}",
* ]
* ```
* @param array|Closure $values Attribute values indexed by attribute names.
* @return ListView
*/
public function itemViewAttributes(array|Closure $values): self
Expand Down

0 comments on commit da4a644

Please sign in to comment.