Every line of 'angular 2 checkbox checked event' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
13 onCheckbox1Change(value) { 14 console.log('checkbox1 checked:', value); 15 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
82 onCheckboxChange(event: any) { 83 event.stopPropagation(); 84 this.change.emit(this.changeEvent); 85 }
114 onCheckboxChange(event: any) { 115 event.stopPropagation(); 116 timer(0).subscribe(() => this.change.emit(this.changeEvent)); 117 }
67 change(event) { 68 this.checked = event.checked; 69 this._ngModelOnChange(event.checked); 70 this.onChange.emit(event); 71 }
65 set checked(value: boolean) { 66 value = !!value; 67 if (this._checked !== value) { 68 this._checked = value; 69 if (this._checked && this.radioGroup && this.radioGroup.value !== this.value) { 70 this.radioGroup.value = this.value; 71 } 72 this.onChangeCallback(this._value); 73 } 74 }
185 private checkboxChange(item: any): void { 186 this.onCheckboxChange.emit({ 187 item: item 188 } as ListEvent); 189 }
55 onAllChecked() { 56 this.data.forEach(item => (item.checked = this.allChecked)); 57 this.notifySet(); 58 }
73 ngDoCheck() { 74 this.getItems(); 75 }
33 set checked(newCheckedState: boolean) { 34 35 if (this._checked !== newCheckedState) { 36 this._checked = newCheckedState; 37 } 38 39 if (newCheckedState && this.radioGroup && this.radioGroup.value !== this.value) { 40 this.radioGroup.selected = this; 41 } else if (!newCheckedState && this.radioGroup && this.radioGroup.value === this.value) { 42 this.radioGroup.selected = null; 43 } 44 45 if (newCheckedState) { 46 this._radioDispatcher.notify(this.id, this.name); 47 } 48 }
116 selectedCheckBox(event:any,rowno: number,data:any){ 117 if(event.currentTarget.checked){ 118 this.selectedData.push(data); 119 } 120 else{ 121 var indexOf = this.selectedData.indexOf(data); 122 delete this.selectedData[indexOf]; 123 } 124 125 const sdata = [] 126 127 for(var i=0;i<this.selectedData.length;i++){ 128 129 if(this.selectedData[i]){ 130 sdata.push(this.selectedData[i]); 131 } 132 } 133 134 this.selectedRows.emit(sdata); 135 }