1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Disable TypedInput

This commit is contained in:
bartbutenaers 2020-11-06 08:45:50 +01:00 committed by GitHub
parent 15a600c763
commit e149174696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -954,6 +954,18 @@
}, },
hide: function() { hide: function() {
this.uiSelect.hide(); this.uiSelect.hide();
},
disable: function(val) {
if(val === true) {
this.uiSelect.attr("disabled", "disabled");
} else if (val === false) {
this.uiSelect.attr("disabled", null); //remove attr
} else {
this.uiSelect.attr("disabled", val); //user value
}
},
disabled: function() {
return this.uiSelect.attr("disabled");
} }
}); });
})(jQuery); })(jQuery);