Every line of 'a disabled attribute inside input is unused' 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.
128 get inputDisabled(): boolean { 129 return this.constantsMode === ConstantsMode.RECEIVED; 130 }
40 get disabled(): boolean | string { 41 return this._disabled; 42 }
51 public get isDisabledAttribute():string | undefined { 52 return this.isDisabled ? "disabled" : undefined; 53 }
122 get disabled(): boolean { 123 if (this.ngControl && this.ngControl.disabled !== null) { 124 return this.ngControl.disabled; 125 } 126 return this._disabled; 127 }
22 public set disabled(value: boolean) { 23 // Although, we defined value type as a boolean (TS API), we need to be prepared to take any value 24 // since it ca be set from HTML, which doesn't validate types 25 this._disabled = coerceBooleanProperty(value); 26 }
13 updateInputDisabledAttribute () { 14 const _this = this; 15 _this.$input.attr('disabled', _this.$checkbox.is(':checked') ? null : 'disabled'); 16 }
47 isDisabled() { 48 return this.el.nativeElement.disabled; 49 }