Disable TypedInput

This commit is contained in:
bartbutenaers
2020-11-06 08:45:50 +01:00
committed by GitHub
parent 15a600c763
commit e149174696

View File

@@ -954,6 +954,18 @@
},
hide: function() {
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);