2014-11-04 83 views

回答

0

onedit,獲取新字符,將其添加到字符串中,從文本框中刪除字符並添加「*」。

0

我正在使用type =「password」的紙張輸入沒有問題。你怎麼做取決於你使用的聚合物的版本。

從主

 <paper-input-decorator 
      id="password" 
      labelVisible 
      floatinglabel 
      error="Password must be 8 chars with numbers, letters and punctuation" 
      label="Password"> 
      <input is="core-input" id="passWord" type="password" pattern="^(?=.*\d.*\d)[[email protected]#$%*]{8,}$" required> 
     </paper-input-decorator> 

從0.4.2

 <paper-input 
      id="passWord" 
      floatinglabel 
      pattern="^(?=.*\d.*\d)[[email protected]#$%*]{8,}$" 
      type="password" 
      label="Password" 
      required> 
     </paper-input> 

我有一個關於這個右門柱後改過來了,我解釋我是如何使用的答案的變化。 updated to newest version of polymer and input validation is no longer working

相關問題