简体   繁体   中英

How to add asterisk symbol in required Field

I have to add asterisk symbol(*) on required field how can I do this in polymer . <paper-input id="firstNameText" required label="First Name" ></paper-input>

Check paper-input

You have there some information about it

--paper-input-container-label-after: Mixin applied to label after pseudo element (useful for required asterisk) {}

Note that you would have to use paper-input-container also

Might this work?:

element {
   --paper-input-container-label-after: {
       your properties for adding *
   };
}

将此添加到纸张输入标签: placeholder="*" 使用 CSS,您可以设置占位符的样式。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM