Skip to content

Commit 06ee93d

Browse files
authored
Add "after-tools" configurable area
1 parent e58bfba commit 06ee93d

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

docs/datatable/configurable-areas.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function configure(): void
3434
'toolbar-right-end' => 'path.to.my.view',
3535
'before-toolbar' => 'path.to.my.view',
3636
'after-toolbar' => 'path.to.my.view',
37+
'after-tools' => 'path.to.my.view',
3738
'before-pagination' => 'path.to.my.view',
3839
'after-pagination' => 'path.to.my.view',
3940
'after-wrapper' => 'path.to.my.view',

resources/views/datatable.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
</x-livewire-tables::tools>
5555
@endif
5656

57+
@includeWhen(
58+
$this->hasConfigurableAreaFor('after-tools'),
59+
$this->getConfigurableAreaFor('after-tools'),
60+
$this->getParametersForConfigurableArea('after-tools')
61+
)
62+
5763
<x-livewire-tables::table>
5864

5965
<x-slot name="thead">

src/Traits/WithConfigurableAreas.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ trait WithConfigurableAreas
2020
'toolbar-right-end' => null,
2121
'before-toolbar' => null,
2222
'after-toolbar' => null,
23+
'after-tools' => null,
2324
'before-pagination' => null,
2425
'after-pagination' => null,
2526
];

0 commit comments

Comments
 (0)