-
-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bulk actions button/dropdown customisations (#1771)
* Add Customisations for BulkActions * Add default-colors and default-styling options * Add "Customisations" doc for Bulk Actions * Fix broken test --------- Co-authored-by: lrljoe <[email protected]>
- Loading branch information
Showing
7 changed files
with
245 additions
and
69 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
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,106 @@ | ||
--- | ||
title: Customising Style | ||
weight: 5 | ||
--- | ||
|
||
## setBulkActionsThAttributes | ||
|
||
You may pass an array to this method, which allows you to pass Custom Attributes into the table header | ||
|
||
```php | ||
public function configure(): void | ||
{ | ||
$this->setBulkActionsThAttributes([ | ||
'class' => 'bg-red-500', | ||
'default' => false | ||
]); | ||
} | ||
``` | ||
|
||
## setBulkActionsThCheckboxAttributes | ||
|
||
You may pass an array to this method, which allows you to pass Custom Attributes into the Select All/None checkbox in the Table Header | ||
|
||
```php | ||
public function configure(): void | ||
{ | ||
$this->setBulkActionsThCheckboxAttributes([ | ||
'class' => 'bg-blue-500', | ||
'default' => false | ||
]); | ||
} | ||
``` | ||
|
||
## setBulkActionsTdAttributes | ||
|
||
You may pass an array to this method, which allows you to pass Custom Attributes into the td containing the Bulk Actions Checkbox for the row | ||
|
||
```php | ||
public function configure(): void | ||
{ | ||
$this->setBulkActionsTdAttributes([ | ||
'class' => 'bg-green-500', | ||
'default' => true | ||
]); | ||
} | ||
``` | ||
|
||
## setBulkActionsTdCheckboxAttributes | ||
|
||
You may pass an array to this method, which allows you to pass Custom Attributes into the Bulk Actions Checkbox for the row | ||
|
||
```php | ||
public function configure(): void | ||
{ | ||
$this->setBulkActionsTdCheckboxAttributes([ | ||
'class' => 'bg-green-500', | ||
'default' => true | ||
]); | ||
} | ||
``` | ||
|
||
## setBulkActionsButtonAttributes | ||
|
||
You may pass an array to this method, which allows you to pass Custom Attributes into the Bulk Actions Button in the Toolbar | ||
|
||
```php | ||
public function configure(): void | ||
{ | ||
$this->setBulkActionsButtonAttributes([ | ||
'class' => 'bg-green-500', | ||
'default-colors' => true, | ||
'default-styling' => true, | ||
]); | ||
} | ||
``` | ||
|
||
## setBulkActionsMenuAttributes | ||
|
||
You may pass an array to this method, which allows you to pass Custom Attributes into the Bulk Actions Menu | ||
|
||
```php | ||
public function configure(): void | ||
{ | ||
$this->setBulkActionsMenuAttributes([ | ||
'class' => 'bg-green-500', | ||
'default-colors' => true, | ||
'default-styling' => true, | ||
]); | ||
} | ||
``` | ||
|
||
|
||
## setBulkActionsMenuItemAttributes | ||
|
||
You may pass an array to this method, which allows you to pass Custom Attributes into Items on the Bulk Actions Menu | ||
|
||
```php | ||
public function configure(): void | ||
{ | ||
$this->setBulkActionsMenuItemAttributes([ | ||
'class' => 'bg-green-500', | ||
'default-colors' => true, | ||
'default-styling' => true, | ||
]); | ||
} | ||
``` |
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
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