Skip to content

Commit 3c7abf4

Browse files
authored
Document comment added
1 parent e52a8d9 commit 3c7abf4

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/TabularColumn.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,18 @@
2020
class TabularColumn extends BaseColumn
2121
{
2222
/**
23-
* @var array the HTML attributes for the body cell tag.
23+
* @var array|\Closure the HTML attributes for the table body columns. This can be either an array
24+
* specifying the common HTML attributes for all body column, or an anonymous function that
25+
* returns an array of the HTML attributes. It should have the following signature:
26+
*
27+
* ```php
28+
* function ($model, $index, $context)
29+
* ```
30+
*
31+
* - `$model`: the current data model being rendered
32+
* - `$index`: the zero-based index of the data model in the model array
33+
* - `$context`: the widget object
34+
*
2435
*/
2536
public $columnOptions = [];
2637

0 commit comments

Comments
 (0)