-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [v3.4.10] - 2024-08-23 ### Bug Fixes - Default UseComputedProperties to True to default to new views by @lrljoe in #1873 - Allow Single Date DateRangeFilter by @lrljoe in #1872 - Allow clearing of DateRangeFilter by Text Box by @lrljoe in #1875 ### Docs - Docs Update by @lrljoe in #1876
- Loading branch information
Showing
31 changed files
with
1,073 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/bulk-actions/customisations.md → docs/bulk-actions/styling.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: Customising Style | ||
title: Styling | ||
weight: 5 | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
title: Styling | ||
weight: 2 | ||
--- | ||
|
||
## setFooterTrAttributes | ||
|
||
Set any attributes on the footer row element. | ||
|
||
```php | ||
public function configure(): void | ||
{ | ||
$this->setFooterTrAttributes(function($rows) { | ||
return ['class' => 'bg-gray-100']; | ||
}); | ||
} | ||
``` | ||
|
||
By default, this replaces the default classes on the tr element, if you would like to keep them, set the default flag to true. | ||
|
||
```php | ||
public function configure(): void | ||
{ | ||
$this->setFooterTrAttributes(function($rows) { | ||
return [ | ||
'default' => true, | ||
'class' => 'bg-gray-100' | ||
]; | ||
}); | ||
} | ||
``` | ||
|
||
## setFooterTdAttributes | ||
|
||
Set any attributes on the footer row cells. | ||
|
||
```php | ||
public function configure(): void | ||
{ | ||
$this->setFooterTdAttributes(function(Column $column, $rows) { | ||
if ($column->isField('id')) { | ||
return ['class' => 'text-red-500']; | ||
} | ||
}); | ||
} | ||
``` | ||
|
||
By default, this replaces the default classes on the td element, if you would like to keep them, set the default flag to true. | ||
|
||
```php | ||
public function configure(): void | ||
{ | ||
$this->setFooterTdAttributes(function(Column $column, $rows) { | ||
if ($column->isField('id')) { | ||
return [ | ||
'default' => true, | ||
'class' => 'text-red-500' | ||
]; | ||
} | ||
}); | ||
} | ||
``` |
Oops, something went wrong.