nativescript-filter-select icon indicating copy to clipboard operation
nativescript-filter-select copied to clipboard

Problem with clear filter select

Open leosilvestre7 opened this issue 7 years ago • 3 comments
trafficstars

not function the function clear when delete selected options

leosilvestre7 avatar Sep 06 '18 17:09 leosilvestre7

@leosilvestre7 please explain more details i didn't understand the problem here

moayadnajd avatar Sep 26 '18 11:09 moayadnajd

I want to update the filter with data already pre-selected but not updated

COMPONENT this.personService.getPerson(this.person.id).subscribe( dataPerson => { this.person.userAcademicGrades = dataPerson['userAcademicGrades']; const academic_grades = this.returnAcademicGrades(this.person); this.gradesSelected = (academic_grades.length > 0) ? academic_grades : [];

VIEW <FilterSelect [items]="levelList" (change)="onitemselected($event)" hint="Lista de grados" modal_title="GRADOS DISPONIBLES" search_param="name" primary_key="id" searchHint="Buscar por nombre" [selected]="gradesSelected" selectText="Elegir Grado" doneText="Guardar" closeText="Cerrar"> </FilterSelect>

"gradesSelected" is the parameter that is updated with each person search and should load the items already selected but this does not happen, it always stays stuck what I look for first and is never updated.

leosilvestre7 avatar Oct 02 '18 22:10 leosilvestre7

@leosilvestre7 sorry i am busy .. did you solve it ?

moayadnajd avatar Oct 23 '18 11:10 moayadnajd