PacemInputPasswordElement
is the suggested webcomponent for secret text editing.
PacemInputPasswordElement
can be injected into a form via metadata, the following way.
[ {"prop": "secret", "type": "string", "dataType": "password", "display": { "name": "Secret", "watermark": "Your secret here...", "description": "Write down your secret string here.", "cssClass": ["field-stretch"] }, "extra": { "tooltip": true }, "validators": [{ "type": "required", "errorMessage": "Secret is a required field." }] } ]