Every line of 'set selected' 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.
96 setSelected(selected) { 97 const oldValue = this.selected; 98 const newValue = !!selected; 99 if (newValue !== oldValue) { 100 this.selected = newValue; 101 this.notify(); 102 } 103 }
44 set selected( selected ) { 45 this.setProperty("selected", selected); 46 }
1934 setSelected(selected) { 1935 return image_set_selected(this.nativeObj, selected); 1936 }
163 _markSelected(value) { 164 if (!this.isSelected(value)) { 165 if (!this._isMulti) { 166 this._unmarkAll(); 167 } 168 this._selection.add(value); 169 if (this._emitChanges) { 170 this._selectedToEmit.push(value); 171 } 172 } 173 }
43 set selected(v: boolean) { 44 this.isSelected = v; 45 this.selectionChange(); 46 }