You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/columns/styling.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,11 @@ Below is a copy of the relevant sections from [datatable styling](../datatable/s
45
45
46
46
Set a list of attributes to override on the th elements.
47
47
48
+
If your Column does not have a field (e.g. a label column), then you may use the following, which will utilise the first parameter in Column::make()
49
+
```php
50
+
$column->getTitle()
51
+
```
52
+
48
53
```php
49
54
public function configure(): void
50
55
{
@@ -204,6 +209,11 @@ public function configure(): void
204
209
205
210
Set a list of attributes to override on the td elements. For example, changing the background color between red/green based on whether the "total" field is over or under 1000.
206
211
212
+
If your Column does not have a field (e.g. a label column), then you may use the following, which will utilise the first parameter in Column::make()
0 commit comments