10 examples of 'angular disable input' in JavaScript

Every line of 'angular disable input' 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.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
28@Input("readonly") set disableControl(disabled: boolean) {
29 this.setDisabledState(disabled);
30}
Important

Use secure code every time

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

272function disableInput() {
273 var current = state.get();
274 if (current.active)
275 events.publish('disable-input');
276}
278setDisabledState(isDisabled: boolean): void { this.disabled = isDisabled; }
122get disabled(): boolean {
123 if (this.ngControl && this.ngControl.disabled !== null) {
124 return this.ngControl.disabled;
125 }
126 return this._disabled;
127}
122get nzDisabled(): boolean {
123 return this._disabled;
124};
249set disabled(value: any) {
250 this._disabled = value === '' || (value && value !== 'false');
251
252 if (this.isOpen()) {
253 this._cRef.instance.setDisabledState(this._disabled);
254 }
255}
310function DisableInputs() {
311 $("input").each(function () {
312 $(this).fadeOut(300).fadeIn(150);
313 $(this).delay(455).prop("disabled", true);
314 });
315 $(".button").each(function () {
316 $(this).fadeOut(300).fadeIn(150);
317 $(this).delay(455).addClass("disabled");
318 });
319 cookie.set("_input", "disabled", { expires: 7 });
320}
49function inputBlur(paramIndex) {
50 /*jshint validthis:true */
51 var $input = $(this);
52 var $link = $input.prev();
53 var newValue = $input.val();
54
55 if (newValue !== '' || part.def.params[paramIndex].optional) {
56 $link.html(templateSrv.highlightVariablesAsHtml(newValue));
57
58 part.updateParam($input.val(), paramIndex);
59 $scope.$apply($scope.partUpdated);
60 }
61
62 $input.hide();
63 $link.show();
64}
128get inputDisabled(): boolean {
129 return this.constantsMode === ConstantsMode.RECEIVED;
130}
140setDisabledState(isDisabled: boolean): void {
141 this.isDisabled = isDisabled ? true : null;
142}

Related snippets