в строку поиска добавил крестик для удаления
This commit is contained in:
parent
1ddf5a1a05
commit
e784abd65f
@ -53,6 +53,11 @@ public function toggleComplex($complexId)
|
|||||||
|
|
||||||
$this->updated();
|
$this->updated();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function removeSearchString() {
|
||||||
|
unset($this->filter['search']);
|
||||||
|
$this->updated();
|
||||||
|
}
|
||||||
public function updated()
|
public function updated()
|
||||||
{
|
{
|
||||||
$this->dispatch('clientsTableFilterUpdated', filter: $this->filter);
|
$this->dispatch('clientsTableFilterUpdated', filter: $this->filter);
|
||||||
|
|||||||
@ -84,6 +84,11 @@
|
|||||||
</span>
|
</span>
|
||||||
<input wire:model.live="filter.search" type="text" class="form-control form-control-lg"
|
<input wire:model.live="filter.search" type="text" class="form-control form-control-lg"
|
||||||
placeholder="Поиск по имени, телефону, электронной почте">
|
placeholder="Поиск по имени, телефону, электронной почте">
|
||||||
|
@if(array_key_exists('search', $filter))
|
||||||
|
<button wire:click="removeSearchString()" class="btn btn-light m-1 btn-sm" style="z-index:1000;width:2rem;height:2rem;position:absolute;right:0;top: calc(50% - 1.2rem);">
|
||||||
|
<i class="bi bi-x-lg"></i>
|
||||||
|
</button>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<!-- Выбор ЖК-->
|
<!-- Выбор ЖК-->
|
||||||
<div class="btn-group bg-light d-flex rounded-4 ">
|
<div class="btn-group bg-light d-flex rounded-4 ">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user