File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ class Column
19
19
*/
20
20
public ?string $ text = null ;
21
21
22
+ /**
23
+ * @var array
24
+ */
25
+ public array $ attributes = [];
26
+
22
27
/**
23
28
* @var bool
24
29
*/
@@ -170,6 +175,18 @@ public function addClass(string $class): self
170
175
return $ this ;
171
176
}
172
177
178
+ /**
179
+ * @param array $attributes
180
+ *
181
+ * @return $this
182
+ */
183
+ public function addAttributes (array $ attributes ): self
184
+ {
185
+ $ this ->attributes = $ attributes ;
186
+
187
+ return $ this ;
188
+ }
189
+
173
190
/**
174
191
* @return Column
175
192
*/
@@ -204,6 +221,14 @@ public function text(): ?string
204
221
return $ this ->text ;
205
222
}
206
223
224
+ /**
225
+ * @return array
226
+ */
227
+ public function attributes (): array
228
+ {
229
+ return $ this ->attributes ;
230
+ }
231
+
207
232
/**
208
233
* @param callable $callable
209
234
*
You can’t perform that action at this time.
0 commit comments