Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs - add getTitle reference for setTdAttributes/setTrAttributes #1976

Merged
merged 1 commit into from
Sep 29, 2024
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