mercredi 8 septembre 2021

When checkbox is uncheck, I want to return all my list

when I uncheck my text box, its not returning an selectedItemsList .Hope you understand my problem.

 changeSelection() {
            this.checkedIDs = []
            this.selectedItemsList = this.DisplayProductList.filter((value, index) => {
              if (value.isChecked == true) {
               
                return value.isChecked
              }
            
                else{
                this.selectedItemsList = this.ProductData;
              
              }
             
            });
          
            this.router.navigate(['pipeline/cluster/policies'])
            this.sendclusteridApi()
          }



Aucun commentaire:

Enregistrer un commentaire