1

I want to use a PNotify prompt dialog for entering a password. Does anyone know how to change the input type to be password? I can't see any mention of it in the docs. http://jsfiddle.net/gusLfnux/1/

new PNotify({
  title: 'Password Required',
  text: 'Enter Password',
  icon: 'glyphicon glyphicon-lock',
  styling: 'bootstrap3',
  hide: false,
  addclass: 'stack-modal',
  confirm: {
    prompt: true
  },
  buttons: {
    closer: false,
    sticker: false
  },
  history: {
    history: false
  }
})
4

1 回答 1

1

通过向确认对象添加自定义 css 类来获得我想要的结果。工作示例http://jsfiddle.net/gusLfnux/2/

CSS:

.password {
   -webkit-text-security: square !important;
}
于 2017-02-27T10:45:40.103 回答