We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e52a8d9 commit 3c7abf4Copy full SHA for 3c7abf4
src/TabularColumn.php
@@ -20,7 +20,18 @@
20
class TabularColumn extends BaseColumn
21
{
22
/**
23
- * @var array the HTML attributes for the body cell tag.
+ * @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
35
*/
36
public $columnOptions = [];
37
0 commit comments