Merge pull request #2752 from bartbutenaers/readonly-typedinput

Allow TypedInput to be disabled
This commit is contained in:
Nick O'Leary
2020-12-07 12:21:53 +00:00
committed by GitHub
2 changed files with 20 additions and 0 deletions

View File

@@ -965,6 +965,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);