Skip to content

Commit

Permalink
fix datalist filters + add search input
Browse files Browse the repository at this point in the history
  • Loading branch information
joelclems authored and TheoLechemia committed Nov 7, 2023
1 parent 2d006ce commit 8203c79
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
CHANGELOG
=========

2.13.4 (unreleased)
-------------------

**🐛 Corrections**

- [Frontend] Composant `datalist` prise en compte des filtres définis avec l'input `filters`.

2.13.3 (2023-10-17)
-------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@
<small> {{ label }} </small>

<ng-select
[items]="values"
[items]="filteredValues"
[bindLabel]="keyLabel"
[bindValue]="keyValue"
[multiple]="multiple"
[clearable]="false"
[virtualScroll]="true"
[required]="required"
[formControl]="parentFormControl"
[searchable]="true"
>
<ng-template ng-option-tmp let-item="item" let-index="index" let-search="searchTerm">
<div [matTooltip]="item[keyLabel]">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export class DatalistComponent extends GenericFormComponent implements OnInit {
}

ngOnInit() {
this.designStyle = this.designStyle || "material";
this.formId = `datalist_${Math.ceil(Math.random() * 1e10)}`;
this.getData();
}
Expand Down

0 comments on commit 8203c79

Please sign in to comment.