Skip to content

Commit bba67f2

Browse files
authored
Add setToolsAttributes and setToolBarAttributes docs
1 parent cd89e9e commit bba67f2

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

docs/misc/tools.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,28 @@ Disables the Toolbar, which contains the Reorder, Filters, Search, Column Select
5656
{
5757
$this->setToolBarDisabled();
5858
}
59-
```
59+
```
60+
61+
### setToolsAttributes
62+
Allows setting of attributes for the parent element in the tools blade
63+
64+
By default, this replaces the default classes on the tools blade, if you would like to keep them, set the default-colors/default-styling flags to true as appropriate
65+
66+
```php
67+
public function configure(): void
68+
{
69+
$this->setToolsAttributes(['class' => ' bg-green-500', 'default-colors' => false, 'default-styling' => true]);
70+
}
71+
```
72+
73+
### setToolBarAttributes
74+
Allows setting of attributes for the parent element in the toolbar blade.
75+
76+
By default, this replaces the default classes on the toolbar blade, if you would like to keep them, set the default-colors/default-styling flags to true as appropriate
77+
78+
```php
79+
public function configure(): void
80+
{
81+
$this->setToolBarAttributes(['class' => ' bg-red-500', 'default-colors' => false, 'default-styling' => true]);
82+
}
83+
```

0 commit comments

Comments
 (0)