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:
parent
15a600c763
commit
e149174696
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user