Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/columns/styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ Below is a copy of the relevant sections from [datatable styling](../datatable/s

Set a list of attributes to override on the th elements.

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()
```php
$column->getTitle()
```

```php
public function configure(): void
{
Expand Down Expand Up @@ -204,6 +209,11 @@ public function configure(): void

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.

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()
```php
$column->getTitle()
```

```php
public function configure(): void
{
Expand Down
10 changes: 10 additions & 0 deletions docs/datatable/styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ public function configure(): void

Set a list of attributes to override on the th elements.

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()
```php
$column->getTitle()
```

```php
public function configure(): void
{
Expand Down Expand Up @@ -311,6 +316,11 @@ public function configure(): void

Set a list of attributes to override on the td elements

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()
```php
$column->getTitle()
```

```php
public function configure(): void
{
Expand Down
Loading