ajout filtrage de multi filtre par input texte
This commit is contained in:
parent
e9d273c5a2
commit
a4645638cd
2 changed files with 29 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue