14.11.2019, 08:12
Use this Custom JavaScript. It will switch input type to password if your object element has password class and revert to text otherwise.
Code:
$(function(){
var _preConfigureControl = preConfigureControl;
preConfigureControl = function(widget, el, type, main) {
if (type == 'textinput') {
var password = widget.el.hasClass('password');
el.find('input').attr('type', password ? 'password' : 'text');
}
return _preConfigureControl(widget, el, type, main);
}
});