File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,23 @@ abstract class BaseColumn extends BaseObject
131
131
*/
132
132
public $ nameSuffix ;
133
133
134
+ /**
135
+ * @var array|\Closure the HTML attributes for the indivdual table body column. This can be either an array
136
+ * specifying the common HTML attributes for indivdual body column, or an anonymous function that
137
+ * returns an array of the HTML attributes. It should have the following signature:
138
+ *
139
+ * ```php
140
+ * function ($model, $index, $context)
141
+ * ```
142
+ *
143
+ * - `$model`: the current data model being rendered
144
+ * - `$index`: the zero-based index of the data model in the model array
145
+ * - `$context`: the widget object
146
+ *
147
+ * @since 2.17.2
148
+ */
149
+ public $ columnOptions = [];
150
+
134
151
/**
135
152
* @var Model|ActiveRecordInterface|array
136
153
*/
You can’t perform that action at this time.
0 commit comments