ajout filtrage de multi filtre par input texte

This commit is contained in:
Tykayn 2025-09-25 17:45:20 +02:00 committed by tykayn
parent e9d273c5a2
commit a4645638cd
2 changed files with 29 additions and 3 deletions

View file

@ -15,7 +15,9 @@
(blur)="displayDropdown = false"
(click)="onClickInput()"
(focus)="displayDropdown = true"
class="is-hidden" placeholder="{{label}}"
(input)="onSearchInput($event)"
class=""
placeholder="{{label}}"
type="text">
<span [ngClass]="{ 'is-visible' : selectedChoices?.length}"
@ -36,7 +38,7 @@
@if (selectedChoices?.length && availableChoices?.length) {
<div class="selected-items">
@for(sc of selectedChoices; track sc.value){
@for(sc of getFilteredSelectedChoices(); track sc.value){
<div (click)="selectedChoicesChangeToggleItem(sc)"
class="dropdown-item"
@ -53,7 +55,7 @@
<!-- disponibles:-->
<!-- available:-->
@for(ac of availableChoices; track ac.value){
@for(ac of getFilteredAvailableChoices(); track ac.value){
<div (click)="availableChoicesChangeToggleItem(ac)"
class="dropdown-item"