Home > Back-end >  How to add asterisk symbol in required Field
How to add asterisk symbol in required Field

Time:07-07

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>

CodePudding user response:

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 *
   };
}

CodePudding user response:

Add this to the paper-input tag: placeholder="*" With CSS you can style the placeholder.

  • Related