mapping search wip (stuck)

This commit is contained in:
salam committed 2025-12-29 15:32:24 +01:00
1 parent ea91af51fa
commit b475d78f43
14 files changed
+126 -33

No files matched your search

+17 -2
View File
@@ -24,6 +24,10 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
use InteractsWithSchemas;
use InteractsWithTable;
protected $listeners = [
'reload_data' => '$refresh',
];
public function table(Table $table): Table
{
return $table
@@ -49,9 +53,20 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
->placeholder('League')
->label('Leagues'),
], layout: FiltersLayout::AboveContent)
->hiddenFilterIndicators()
// ->hiddenFilterIndicators()
->filtersFormColumns(3)
->deferFilters(false);
->deferFilters(false)
->toolbarActions([
Action::make('reload_data')
->hiddenLabel()
->color('gray')
->icon('phosphor-x')
->action(function (Component $livewire) {
$livewire->resetTableFiltersForm(); // Clears all filters
$livewire->tableSearch = ''; // Clears the main search bar
$this->dispatch('reload_data');
}),
]);
}
public function rightAction(): Action