Files
shiny/srcjs/input_binding_password.js
2016-06-27 08:02:03 -07:00

11 lines
297 B
JavaScript

var passwordInputBinding = {};
$.extend(passwordInputBinding, textInputBinding, {
find: function(scope) {
return $(scope).find('input[type="password"]');
},
getType: function(el) {
return "shiny.password";
}
});
inputBindings.register(passwordInputBinding, 'shiny.passwordInput');